Merge pull request #2593 from ethereum/parser-error-text

Update parser error for pragma/import/contract
This commit is contained in:
Yoichi Hirai 2017-07-19 11:40:09 +02:00 committed by GitHub
commit d63e7df897

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