From e3044711743caad16cfdecbffb7c94c70f48fd0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Jaworski?= Date: Thu, 28 Feb 2019 15:37:39 +0100 Subject: [PATCH] trying to catch exceptions --- concordia-server/concordia_server_process.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/concordia-server/concordia_server_process.cpp b/concordia-server/concordia_server_process.cpp index 570a361..f2869c1 100644 --- a/concordia-server/concordia_server_process.cpp +++ b/concordia-server/concordia_server_process.cpp @@ -95,6 +95,11 @@ int main(int argc, char** argv) { std::stringstream errorstream; errorstream << "FATAL CONCORDIA ERROR: " << e.what()<< " - shutting down"; Logger::log(errorstream.str()); + } catch (std::exception & e) { + std::stringstream errorstream; + errorstream << "FATAL EXCEPTION: " << e.what()<< " - shutting down"; + Logger::log(errorstream.str()); } + return 0; }