show informations on uncaught std::exceptions

This commit is contained in:
Maxime Coste 2013-03-22 14:29:22 +01:00
parent 0082238c75
commit 07866e6ae9

View File

@ -871,6 +871,11 @@ int main(int argc, char* argv[])
on_assert_failed(("uncaught exception:\n" + error.description()).c_str()); on_assert_failed(("uncaught exception:\n" + error.description()).c_str());
return -1; return -1;
} }
catch (std::exception& error)
{
on_assert_failed(("uncaught exception:\n"_str + error.what()).c_str());
return -1;
}
catch (...) catch (...)
{ {
on_assert_failed("uncaught exception"); on_assert_failed("uncaught exception");