aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityNameAndTypeResolution.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-06-01 18:20:26 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-19 19:26:08 +0800
commit217a4ae7c1b85e26b27857babee2b18e41581a30 (patch)
treef5e6dd43581c031a132ba78b1e25e15cd929df8f /test/libsolidity/SolidityNameAndTypeResolution.cpp
parente45e95f578ee51788bc4d7d588c84e2cc3060420 (diff)
downloaddexon-solidity-217a4ae7c1b85e26b27857babee2b18e41581a30.tar
dexon-solidity-217a4ae7c1b85e26b27857babee2b18e41581a30.tar.gz
dexon-solidity-217a4ae7c1b85e26b27857babee2b18e41581a30.tar.bz2
dexon-solidity-217a4ae7c1b85e26b27857babee2b18e41581a30.tar.lz
dexon-solidity-217a4ae7c1b85e26b27857babee2b18e41581a30.tar.xz
dexon-solidity-217a4ae7c1b85e26b27857babee2b18e41581a30.tar.zst
dexon-solidity-217a4ae7c1b85e26b27857babee2b18e41581a30.zip
Print information about types of errors.
Diffstat (limited to 'test/libsolidity/SolidityNameAndTypeResolution.cpp')
-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 649e7970..6cb53902 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;
}