trying to catch exceptions
This commit is contained in:
parent
46efdd3f32
commit
e304471174
@ -95,6 +95,11 @@ int main(int argc, char** argv) {
|
|||||||
std::stringstream errorstream;
|
std::stringstream errorstream;
|
||||||
errorstream << "FATAL CONCORDIA ERROR: " << e.what()<< " - shutting down";
|
errorstream << "FATAL CONCORDIA ERROR: " << e.what()<< " - shutting down";
|
||||||
Logger::log(errorstream.str());
|
Logger::log(errorstream.str());
|
||||||
|
} catch (std::exception & e) {
|
||||||
|
std::stringstream errorstream;
|
||||||
|
errorstream << "FATAL EXCEPTION: " << e.what()<< " - shutting down";
|
||||||
|
Logger::log(errorstream.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user