aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Parser.cpp
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-10-23 18:44:26 +0800
committerLianaHus <liana@ethdev.com>2015-10-23 18:44:26 +0800
commit6e1385342143a7292d715f84b037b06f5898884f (patch)
tree635d44e015ae8a2a10b1e6c7fc4f7d6368ee1cb8 /libsolidity/parsing/Parser.cpp
parentcb8f6633b237dab7d54904e00fed111c176a812c (diff)
downloaddexon-solidity-6e1385342143a7292d715f84b037b06f5898884f.tar.gz
dexon-solidity-6e1385342143a7292d715f84b037b06f5898884f.tar.zst
dexon-solidity-6e1385342143a7292d715f84b037b06f5898884f.zip
modified error msg
Diffstat (limited to 'libsolidity/parsing/Parser.cpp')
-rw-r--r--libsolidity/parsing/Parser.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index 57f3e913..e7451396 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -1180,7 +1180,13 @@ ASTPointer<Expression> 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();
}