Print information about types of errors.

This commit is contained in:
chriseth 2017-06-01 12:20:26 +02:00 committed by Alex Beregszaszi
parent e45e95f578
commit 217a4ae7c1

View File

@ -112,7 +112,14 @@ parseAnalyseAndReturnError(string const& _source, bool _reportWarnings = false,
)
{
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)
error = currentError;
}