Update parser error for pragma/import/contract

This commit is contained in:
Alex Beregszaszi 2017-06-21 20:18:27 +01:00
parent 01fbc63623
commit c99d049ac0

View File

@ -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);