grammar: nit typo switched error msgs
This commit is contained in:
parent
d03c98ed9a
commit
21bac1e453
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ namespace grammar_parser {
|
||||||
pos++;
|
pos++;
|
||||||
}
|
}
|
||||||
if (pos == src) {
|
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;
|
return pos;
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ namespace grammar_parser {
|
||||||
pos++;
|
pos++;
|
||||||
}
|
}
|
||||||
if (pos == src) {
|
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;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue