aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-07-19 17:40:09 +0800
committerGitHub <noreply@github.com>2017-07-19 17:40:09 +0800
commitd63e7df897cdfdc6212ba8f7cd536016b95277a6 (patch)
treea597d2959e62285f5d2a2a9899f0df3ca8c416da /libsolidity
parent1563c3eb0fc3051819e7752306f5df23d8ab76dd (diff)
parentc99d049ac002f11928d0cb6415d1633b03fcfa57 (diff)
downloaddexon-solidity-d63e7df897cdfdc6212ba8f7cd536016b95277a6.tar
dexon-solidity-d63e7df897cdfdc6212ba8f7cd536016b95277a6.tar.gz
dexon-solidity-d63e7df897cdfdc6212ba8f7cd536016b95277a6.tar.bz2
dexon-solidity-d63e7df897cdfdc6212ba8f7cd536016b95277a6.tar.lz
dexon-solidity-d63e7df897cdfdc6212ba8f7cd536016b95277a6.tar.xz
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
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/parsing/Parser.cpp2
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);