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
@@ -56,12 +56,12 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
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 main: " << 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 main.";
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user