Use boost::current_exception_diagnostic_information() to print extra info about exceptions caught by (...)

This commit is contained in:
Kamil Śliwak
2021-10-07 17:41:25 +02:00
parent daf61a4c90
commit a30348715b
7 changed files with 26 additions and 15 deletions
+4
View File
@@ -86,6 +86,10 @@ int main(int argc, char** argv)
{
cerr << "Exception while processing input: " << boost::diagnostic_information(_exception) << endl;
}
catch (...)
{
cerr << "Unknown exception while processing input: " << boost::current_exception_diagnostic_information() << endl;
}
return 0;
}