From 6e1385342143a7292d715f84b037b06f5898884f Mon Sep 17 00:00:00 2001 From: LianaHus Date: Fri, 23 Oct 2015 12:44:26 +0200 Subject: [PATCH] modified error msg --- libsolidity/parsing/Parser.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 57f3e9132..e74513969 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -1180,7 +1180,13 @@ ASTPointer Parser::expressionFromIndexAccessStructure( void Parser::expectToken(Token::Value _value) { if (m_scanner->currentToken() != _value) - fatalParserError(std::string(string("Expected token ") + string(Token::name(_value)))); + fatalParserError(std::string( + string("Expected token ") + + string(Token::name(_value)) + + string(" got '") + + string(Token::name(m_scanner->currentToken())) + + string("'") + )); m_scanner->next(); }