aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index 37d0f107..2a5613c0 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -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;
}