mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2334 from ethereum/printMultiError
Print information about types of errors.
This commit is contained in:
commit
6d6d4f6907
@ -112,7 +112,14 @@ parseAnalyseAndReturnError(string const& _source, bool _reportWarnings = false,
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (error && !_allowMultipleErrors)
|
if (error && !_allowMultipleErrors)
|
||||||
BOOST_FAIL("Multiple errors found");
|
{
|
||||||
|
string message("Multiple errors found: ");
|
||||||
|
for (auto const& e: errorReporter.errors())
|
||||||
|
if (string const* description = boost::get_error_info<errinfo_comment>(*e))
|
||||||
|
message += *description + ", ";
|
||||||
|
|
||||||
|
BOOST_FAIL(message);
|
||||||
|
}
|
||||||
if (!error)
|
if (!error)
|
||||||
error = currentError;
|
error = currentError;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user