diff --git a/common/grammar-parser.cpp b/common/grammar-parser.cpp index 74152b54c..90ce61d2b 100644 --- a/common/grammar-parser.cpp +++ b/common/grammar-parser.cpp @@ -98,7 +98,7 @@ namespace grammar_parser { pos++; } if (pos == src) { - throw std::runtime_error(std::string("expecting integer at ") + src); + throw std::runtime_error(std::string("expecting name at ") + src); } return pos; } @@ -109,7 +109,7 @@ namespace grammar_parser { pos++; } if (pos == src) { - throw std::runtime_error(std::string("expecting name at ") + src); + throw std::runtime_error(std::string("expecting integer at ") + src); } return pos; }