diff --git a/src/plasp/utils/Parser.cpp b/src/plasp/utils/Parser.cpp index 7c44e87..560b101 100644 --- a/src/plasp/utils/Parser.cpp +++ b/src/plasp/utils/Parser.cpp @@ -196,7 +196,7 @@ void Parser::expect(const std::string &expectedValue) const auto character = static_cast(this->currentCharacter()); if (character != expectedCharacter) - throw ParserException(m_row, m_column, "Unexpected string, expected " + expectedValue + " (expected " + expectedCharacter + ", got " + character + ")"); + throw ParserException(m_row, m_column, "Unexpected string, expected \"" + expectedValue + "\" (expected character '" + expectedCharacter + "', got '" + character + "')"); this->advance(); });