aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Parser.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-22 03:18:27 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-19 04:23:49 +0800
commitc99d049ac002f11928d0cb6415d1633b03fcfa57 (patch)
tree9bad87bb9960a3ce7ff2bad6df3fdb1a9d27aeed /libsolidity/parsing/Parser.cpp
parent01fbc636239f78134b37f9dedeacf40455ee2e0c (diff)
downloaddexon-solidity-c99d049ac002f11928d0cb6415d1633b03fcfa57.tar.gz
dexon-solidity-c99d049ac002f11928d0cb6415d1633b03fcfa57.tar.zst
dexon-solidity-c99d049ac002f11928d0cb6415d1633b03fcfa57.zip
Update parser error for pragma/import/contract
Diffstat (limited to 'libsolidity/parsing/Parser.cpp')
-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);