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([]()
|
self.getIoService().post([]()
|
||||||
{
|
{
|
||||||
try {
|
|
||||||
initializeSalmanoff();
|
initializeSalmanoff();
|
||||||
mind.initialize();
|
mind.initialize();
|
||||||
}
|
|
||||||
catch (const std::exception& e) {
|
|
||||||
mrntt::exitCode = EXIT_FAILURE;
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
std::cout << __func__ << ": Entering event loop" << "\n";
|
std::cout << __func__ << ": Entering event loop" << "\n";
|
||||||
@@ -106,7 +100,11 @@ void ComponentThread::marionetteMain(ComponentThread& self)
|
|||||||
<< ": Unknown exception occurred" << "\n";
|
<< ": 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";
|
std::cout << __func__ << ": Exited event loop" << "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user