diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-07-19 17:40:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 17:40:09 +0800 |
commit | d63e7df897cdfdc6212ba8f7cd536016b95277a6 (patch) | |
tree | a597d2959e62285f5d2a2a9899f0df3ca8c416da | |
parent | 1563c3eb0fc3051819e7752306f5df23d8ab76dd (diff) | |
parent | c99d049ac002f11928d0cb6415d1633b03fcfa57 (diff) | |
download | dexon-solidity-d63e7df897cdfdc6212ba8f7cd536016b95277a6.tar.gz dexon-solidity-d63e7df897cdfdc6212ba8f7cd536016b95277a6.tar.zst dexon-solidity-d63e7df897cdfdc6212ba8f7cd536016b95277a6.zip |
Merge pull request #2593 from ethereum/parser-error-text
Update parser error for pragma/import/contract
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index b0cf364e..b98991f3 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -87,7 +87,7 @@ ASTPointer<SourceUnit> Parser::parse(shared_ptr<Scanner> const& _scanner) nodes.push_back(parseContractDefinition(token)); break; default: - fatalParserError(string("Expected import directive or contract definition.")); + fatalParserError(string("Expected pragma, import directive or contract/interface/library definition.")); } } return nodeFactory.createNode<SourceUnit>(nodes); |