diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-20 04:25:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-20 04:25:36 +0800 |
commit | 6d6d4f69078a6417e1cfb89942f7df2264d89987 (patch) | |
tree | 7e272987c9ee7f51260ce02d17cffa6b8f0665c6 /test/libsolidity | |
parent | 1274108ac7f209247683c56d75cf7a1a56db7f60 (diff) | |
parent | 217a4ae7c1b85e26b27857babee2b18e41581a30 (diff) | |
download | dexon-solidity-6d6d4f69078a6417e1cfb89942f7df2264d89987.tar.gz dexon-solidity-6d6d4f69078a6417e1cfb89942f7df2264d89987.tar.zst dexon-solidity-6d6d4f69078a6417e1cfb89942f7df2264d89987.zip |
Merge pull request #2334 from ethereum/printMultiError
Print information about types of errors.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 9 |
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; } |