Mrntt: set Mrntt::exitCode = EXIT_FAILURE for all exceptions

This commit is contained in:
2025-08-10 13:40:13 -04:00
parent 099d60bcc4
commit 7579446388
+7 -9
View File
@@ -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";