From 21bac1e4532131677b9017b43c9e4da926e5ecff Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Wed, 24 Apr 2024 14:22:20 +0100 Subject: [PATCH] grammar: nit typo switched error msgs --- common/grammar-parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }