Use "what" in exception reports.

This commit is contained in:
chriseth committed 2019-06-18 17:34:10 +02:00
1 parent 5fd9264dcd
commit 05a67c486e
3 files changed
+35 -2

No files matched your search

+22
View File
@@ -989,6 +989,13 @@ bool CommandLineInterface::processInput()
serr() << "Exception during compilation: " << boost::diagnostic_information(_exception) << endl;
return false;
}
catch (std::exception const& _e)
{
serr() << "Unknown exception during compilation" << (
_e.what() ? ": " + string(_e.what()) : "."
) << endl;
return false;
}
catch (...)
{
serr() << "Unknown exception during compilation." << endl;
@@ -1279,6 +1286,14 @@ bool CommandLineInterface::assemble(
serr() << "Exception in assembler: " << boost::diagnostic_information(_exception) << endl;
return false;
}
catch (std::exception const& _e)
{
serr() <<
"Unknown exception during compilation" <<
(_e.what() ? ": " + string(_e.what()) : ".") <<
endl;
return false;
}
catch (...)
{
serr() << "Unknown exception in assembler." << endl;
@@ -1329,6 +1344,13 @@ bool CommandLineInterface::assemble(
serr() << "Exception while assembling: " << boost::diagnostic_information(_exception) << endl;
return false;
}
catch (std::exception const& _e)
{
serr() << "Unknown exception during compilation" << (
_e.what() ? ": " + string(_e.what()) : "."
) << endl;
return false;
}
catch (...)
{
serr() << "Unknown exception while assembling." << endl;