mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Test exceptions thrown in user code
This commit is contained in:
committed by
Dennis Klein
parent
bde12f58b2
commit
e39316c866
@@ -111,12 +111,10 @@ auto DeviceRunner::RunWithExceptionHandlers() -> int
|
||||
try {
|
||||
return Run();
|
||||
} catch (std::exception& e) {
|
||||
LOG(error) << "Unhandled exception reached the top of main: " << e.what()
|
||||
<< ", application will now exit";
|
||||
LOG(error) << "Uncaught exception reached the top of DeviceRunner: " << e.what();
|
||||
return 1;
|
||||
} catch (...) {
|
||||
LOG(error) << "Non-exception instance being thrown. Please make sure you use "
|
||||
"std::runtime_exception() instead. Application will now exit.";
|
||||
LOG(error) << "Uncaught exception reached the top of DeviceRunner.";
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user