From 2d98ebf0f7aafbbacdba85f0ced572473c6eeee3 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Fri, 12 Apr 2024 18:25:20 +0100 Subject: [PATCH] Update common/grammar-parser.cpp Co-authored-by: Clint Herron --- common/grammar-parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/grammar-parser.cpp b/common/grammar-parser.cpp index a2710a217..ba8b4ef9b 100644 --- a/common/grammar-parser.cpp +++ b/common/grammar-parser.cpp @@ -296,7 +296,7 @@ namespace grammar_parser { pos = parse_space(pos + 1, is_nested); if (!is_digit_char(*pos)) { - throw std::runtime_error(std::string("expecting an int or ',' at ") + pos); + throw std::runtime_error(std::string("expecting an int at ") + pos); } const char * int_end = parse_int(pos); int min_times = std::stoul(std::string(pos, int_end - pos));