Mrntt: set Mrntt::exitCode = EXIT_FAILURE for all exceptions
This commit is contained in:
@@ -67,14 +67,8 @@ void ComponentThread::marionetteMain(ComponentThread& self)
|
||||
|
||||
self.getIoService().post([]()
|
||||
{
|
||||
try {
|
||||
initializeSalmanoff();
|
||||
mind.initialize();
|
||||
}
|
||||
catch (const std::exception& e) {
|
||||
mrntt::exitCode = EXIT_FAILURE;
|
||||
throw;
|
||||
}
|
||||
initializeSalmanoff();
|
||||
mind.initialize();
|
||||
});
|
||||
|
||||
std::cout << __func__ << ": Entering event loop" << "\n";
|
||||
@@ -106,7 +100,11 @@ void ComponentThread::marionetteMain(ComponentThread& self)
|
||||
<< ": Unknown exception occurred" << "\n";
|
||||
}
|
||||
|
||||
if (sendExceptionInd) { self.exceptionInd(self); }
|
||||
if (sendExceptionInd)
|
||||
{
|
||||
mrntt::exitCode = EXIT_FAILURE;
|
||||
self.exceptionInd(self);
|
||||
}
|
||||
}
|
||||
|
||||
std::cout << __func__ << ": Exited event loop" << "\n";
|
||||
|
||||
Reference in New Issue
Block a user