aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-26 21:17:08 +0800
committerGitHub <noreply@github.com>2018-11-26 21:17:08 +0800
commit9ac7c748f8b954e712ba78f1431a1b5151a4ad86 (patch)
tree91dd905c5fefab466ff496edab884e0d8d8e608c /libsolidity
parent0b474d52994028392402ca1e7f56b613ab365dec (diff)
parent0ad56bca790fa88d3baa7f46dc47c104baedd824 (diff)
downloaddexon-solidity-9ac7c748f8b954e712ba78f1431a1b5151a4ad86.tar.gz
dexon-solidity-9ac7c748f8b954e712ba78f1431a1b5151a4ad86.tar.zst
dexon-solidity-9ac7c748f8b954e712ba78f1431a1b5151a4ad86.zip
Merge pull request #5494 from ethereum/scanner-error-handling
Improved Scanner error diagnostics.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/parsing/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index ffe2be83..3f4a015b 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -1555,8 +1555,8 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
expression = nodeFactory.createNode<TupleExpression>(components, isArray);
break;
}
- case Token::IllegalHex:
- fatalParserError("Expected even number of hex-nibbles within double-quotes.");
+ case Token::Illegal:
+ fatalParserError(to_string(m_scanner->currentError()));
break;
default:
if (TokenTraits::isElementaryTypeName(token))