mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use "what" in exception reports.
This commit is contained in:
1 parent
5fd9264dcd
commit
05a67c486e
3 files changed
+35
-2
No files matched your search
@@ -769,6 +769,15 @@ Json::Value StandardCompiler::compileSolidity(StandardCompiler::InputsAndSetting
|
||||
"Exception during compilation: " + boost::diagnostic_information(_exception)
|
||||
));
|
||||
}
|
||||
catch (std::exception const& _e)
|
||||
{
|
||||
errors.append(formatError(
|
||||
false,
|
||||
"Exception",
|
||||
"general",
|
||||
"Unknown exception during compilation" + (_e.what() ? ": " + string(_e.what()) : ".")
|
||||
));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
errors.append(formatError(
|
||||
|
||||
Reference in new issue
Block a user