From 07866e6ae96ce8ebd1ae30bcf92dcf021687ce58 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 22 Mar 2013 14:29:22 +0100 Subject: [PATCH] show informations on uncaught std::exceptions --- src/main.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cc b/src/main.cc index 07d55b8c..728ee72d 100644 --- a/src/main.cc +++ b/src/main.cc @@ -871,6 +871,11 @@ int main(int argc, char* argv[]) on_assert_failed(("uncaught exception:\n" + error.description()).c_str()); return -1; } + catch (std::exception& error) + { + on_assert_failed(("uncaught exception:\n"_str + error.what()).c_str()); + return -1; + } catch (...) { on_assert_failed("uncaught exception");