mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update parser error for pragma/import/contract
This commit is contained in:
parent
01fbc63623
commit
c99d049ac0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user