mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not stop if there is more than one error.
This commit is contained in:
parent
d829794737
commit
7698b0b63f
@ -78,7 +78,8 @@ boost::optional<Error> parseAndReturnFirstError(string const& _source, bool _all
|
||||
ErrorReporter errorReporter(errors);
|
||||
if (!parse(_source, errorReporter))
|
||||
{
|
||||
BOOST_REQUIRE_EQUAL(errors.size(), 1);
|
||||
BOOST_REQUIRE(!errors.empty());
|
||||
BOOST_CHECK_EQUAL(errors.size(), 1);
|
||||
return *errors.front();
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user