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
+5 -7
View File
@@ -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";