Catch any exception type in the main of runFairMQDevice.h

This commit is contained in:
Alexey Rybalchenko 2017-06-22 14:45:39 +02:00 committed by Mohammad Al-Turany
parent 25a75c1f82
commit cae3fd6aa3

View File

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