Skip to content

Commit

Permalink
Merge pull request ethereum#2593 from ethereum/parser-error-text
Browse files Browse the repository at this point in the history
Update parser error for pragma/import/contract
  • Loading branch information
pirapira authored Jul 19, 2017
2 parents 1563c3e + c99d049 commit d63e7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsolidity/parsing/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d63e7df

Please sign in to comment.