From 3579a4404abd7e0e026a2373ace55410855ffe80 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Mon, 4 Mar 2013 23:13:36 +0100 Subject: [PATCH] Report std::exception in main loop --- src/Main/bootstrap.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index f305b345b..73fb6fd5e 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -252,11 +252,14 @@ int main ( int argc, char **argv ) if (std::strlen(t.getOrigin()) != 0) cerr << " (received from " << t.getOrigin() << ')' << endl; + } catch (const std::exception &e ) { + cerr << "Fatal error (std::exception): " << e.what() << endl; + } catch (const std::string &s) { - cerr << "Fatal error: " << s << endl; + cerr << "Fatal error (std::string): " << s << endl; } catch (const char *s) { - cerr << "Fatal error: " << s << endl; + cerr << "Fatal error (const char*): " << s << endl; } catch (...) { cerr << "Unknown exception in the main loop. Aborting..." << endl; -- 2.39.5