diff options
Diffstat (limited to 'lib/Parser/ParserExpression.cc')
| -rw-r--r-- | lib/Parser/ParserExpression.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parser/ParserExpression.cc b/lib/Parser/ParserExpression.cc index b3bb3d9..8c5e8ce 100644 --- a/lib/Parser/ParserExpression.cc +++ b/lib/Parser/ParserExpression.cc @@ -279,8 +279,8 @@ std::unique_ptr<ExprAST> Parser::ParsePrimaryImpl() { } case '(': return ParseParenExpr(); default: - cps::sourceError(Lex.getLine(), "unknown token '%c' (%d) when expecting an expression", - (char)CurTok, CurTok); + cps::sourceError(Lex.getLine(), "Expected an expression but found %s", + Lexer::tokenSpelling(CurTok, Lex).c_str()); return nullptr; } } |
