trying to catch exceptions

This commit is contained in:
Rafał Jaworski 2019-02-28 15:37:39 +01:00
parent 46efdd3f32
commit e304471174

View File

@ -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;
}