mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use boost::current_exception_diagnostic_information() to print extra info about exceptions caught by (...)
This commit is contained in:
@@ -306,13 +306,13 @@ void SourceUpgrade::tryCompile() const
|
||||
{
|
||||
error() << "Exception during compilation: " << boost::diagnostic_information(_exception) << endl;
|
||||
}
|
||||
catch (std::exception const& _e)
|
||||
catch (std::exception const& _exception)
|
||||
{
|
||||
error() << (_e.what() ? ": " + string(_e.what()) : ".") << endl;
|
||||
error() << "Exception during compilation: " << boost::diagnostic_information(_exception) << endl;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
error() << "Unknown exception during compilation." << endl;
|
||||
error() << "Unknown exception during compilation: " << boost::current_exception_diagnostic_information() << endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -517,7 +517,7 @@ ReadCallback::Callback SourceUpgrade::fileReader()
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
return ReadCallback::Result{false, "Unknown exception in read callback."};
|
||||
return ReadCallback::Result{false, "Unknown exception in read callback: " + boost::current_exception_diagnostic_information()};
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user