mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-12-13 06:20:16 +00:00
Catch any exception type in the main of runFairMQDevice.h
This commit is contained in:
committed by
Mohammad Al-Turany
parent
25a75c1f82
commit
cae3fd6aa3
@@ -69,6 +69,11 @@ int main(int argc, char** argv)
|
||||
LOG(ERROR) << "Unhandled exception reached the top of main: " << e.what() << ", application will now exit";
|
||||
return 1;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
LOG(ERROR) << "Non-exception instance being thrown. Please make sure you use std::runtime_exception() instead. Application will now exit.";
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user