aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-24 02:43:06 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-04-24 18:34:02 +0800
commite24c35bce04225f5301a65108889f9487bf5d7c5 (patch)
treedf90a676bdbbf7cec44859c7662aa80fde52bc31 /libsolidity/interface
parenta9f4215720ad7185e9a109ea1cf317d539c1b8e5 (diff)
downloaddexon-solidity-e24c35bce04225f5301a65108889f9487bf5d7c5.tar.gz
dexon-solidity-e24c35bce04225f5301a65108889f9487bf5d7c5.tar.zst
dexon-solidity-e24c35bce04225f5301a65108889f9487bf5d7c5.zip
Be a bit more verbose and capture Boost exceptions in StandardCompiler
Diffstat (limited to 'libsolidity/interface')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp6
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");
}
}