Skip to content

Commit

Permalink
Merge pull request pboyer#9 from nuuman/patch-1
Browse files Browse the repository at this point in the history
Update DefaultErrorStrategy.cpp
  • Loading branch information
mike-lischke committed Jun 26, 2016
2 parents c8f80b1 + a2d6b62 commit a6699ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/Cpp/runtime/src/DefaultErrorStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ void DefaultErrorStrategy::reportUnwantedToken(Parser *recognizer) {
std::string tokenName = getTokenErrorDisplay(t);
misc::IntervalSet expecting = getExpectedTokens(recognizer);

std::string msg = std::string("extraneous input ") + tokenName + std::string(" expecting ") +
expecting.toString(recognizer->getVocabulary());
std::string vocabulary = expecting.toString(recognizer->getVocabulary());
std::string msg = std::string("extraneous input ") + tokenName + std::string(" expecting ") + escapeWSAndQuote(vocabulary);
recognizer->notifyErrorListeners(t, msg, nullptr);
}

Expand Down

0 comments on commit a6699ea

Please sign in to comment.