mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2593 from ethereum/parser-error-text
Update parser error for pragma/import/contract
This commit is contained in:
commit
d63e7df897
@ -87,7 +87,7 @@ ASTPointer<SourceUnit> Parser::parse(shared_ptr<Scanner> const& _scanner)
|
|||||||
nodes.push_back(parseContractDefinition(token));
|
nodes.push_back(parseContractDefinition(token));
|
||||||
break;
|
break;
|
||||||
default:
|
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);
|
return nodeFactory.createNode<SourceUnit>(nodes);
|
||||||
|
Loading…
Reference in New Issue
Block a user