This commit is contained in:
dg
2023-04-06 09:33:30 +00:00
parent 41460457a3
commit acf32c2a5c
2 changed files with 5 additions and 1 deletions

View File

@@ -74,7 +74,6 @@ private:
void OnQueueFailed() override
{
fmt::print("queue failed\n");
if (_state == STATE_READING_WORKING)
_state = STATE_READING_FAILED;
else if (_state == STATE_WRITING_WORKING)

View File

@@ -75,6 +75,11 @@ wxThread::ExitCode FluxEngineApp::Entry()
{
Logger() << EmergencyStopMessage();
}
catch (const std::exception& e)
{
Logger() << ErrorLogMessage{
fmt::format("unhandled exception: {}\n", e.what())};
}
postToUiThread(
[&]