From 99bc86f00ccd2af640e216bc3a0c4b04fdeda47c Mon Sep 17 00:00:00 2001
From: jpbl <jpbl>
Date: Mon, 17 Oct 2005 18:57:02 +0000
Subject: [PATCH] we have better handling of std::exceptions

---
 src/main.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main.cpp b/src/main.cpp
index f06121cdab..ab113d0500 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -45,6 +45,10 @@ main (int argc, char **argv) {
       Manager::instance().init();
       initOK = true;
     }
+    catch (std::exception &e) {
+      std::cerr << e.what() << std::endl;
+      exit_code = -1;
+    }
     catch (...) {
       std::cerr << 
     "An exception occured when initializing the system." << 
-- 
GitLab