mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
modified error msg
This commit is contained in:
parent
cb8f6633b2
commit
6e13853421
@ -1180,7 +1180,13 @@ ASTPointer<Expression> Parser::expressionFromIndexAccessStructure(
|
|||||||
void Parser::expectToken(Token::Value _value)
|
void Parser::expectToken(Token::Value _value)
|
||||||
{
|
{
|
||||||
if (m_scanner->currentToken() != _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();
|
m_scanner->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user