diff options
author | LianaHus <liana@ethdev.com> | 2015-10-23 18:44:26 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-10-23 18:44:26 +0800 |
commit | 6e1385342143a7292d715f84b037b06f5898884f (patch) | |
tree | 635d44e015ae8a2a10b1e6c7fc4f7d6368ee1cb8 /libsolidity/parsing/Parser.cpp | |
parent | cb8f6633b237dab7d54904e00fed111c176a812c (diff) | |
download | dexon-solidity-6e1385342143a7292d715f84b037b06f5898884f.tar dexon-solidity-6e1385342143a7292d715f84b037b06f5898884f.tar.gz dexon-solidity-6e1385342143a7292d715f84b037b06f5898884f.tar.bz2 dexon-solidity-6e1385342143a7292d715f84b037b06f5898884f.tar.lz dexon-solidity-6e1385342143a7292d715f84b037b06f5898884f.tar.xz 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.cpp | 8 |
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(); } |