summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-22 14:29:22 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-22 14:29:22 +0100
commit07866e6ae96ce8ebd1ae30bcf92dcf021687ce58 (patch)
tree50f414bf041c5f2bec7485e5fda8471bf4ec0b10 /src
parent0082238c75e6fc19d29228987e5b4ef735f8c8e4 (diff)
show informations on uncaught std::exceptions
Diffstat (limited to 'src')
-rw-r--r--src/main.cc5
1 files changed, 5 insertions, 0 deletions
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");