diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-24 02:43:06 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-24 18:34:02 +0800 |
commit | e24c35bce04225f5301a65108889f9487bf5d7c5 (patch) | |
tree | df90a676bdbbf7cec44859c7662aa80fde52bc31 | |
parent | a9f4215720ad7185e9a109ea1cf317d539c1b8e5 (diff) | |
download | dexon-solidity-e24c35bce04225f5301a65108889f9487bf5d7c5.tar.gz dexon-solidity-e24c35bce04225f5301a65108889f9487bf5d7c5.tar.zst dexon-solidity-e24c35bce04225f5301a65108889f9487bf5d7c5.zip |
Be a bit more verbose and capture Boost exceptions in StandardCompiler
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index 4a8787b3..5408db2e 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -413,9 +413,13 @@ Json::Value StandardCompiler::compile(Json::Value const& _input) { return compileInternal(_input); } + catch (Exception const& _exception) + { + return formatFatalError("InternalCompilerError", "Internal exception in StandardCompiler::compileInternal: " + boost::diagnostic_information(_exception)); + } catch (...) { - return formatFatalError("InternalCompilerError", "Internal exception in StandardCompiler::compilerInternal"); + return formatFatalError("InternalCompilerError", "Internal exception in StandardCompiler::compileInternal"); } } |