Gui: encoding/decoding of system specific error message

This commit is contained in:
wmayer
2021-12-30 00:48:57 +01:00
parent 91bfb0fbb6
commit 88c015e007

View File

@@ -2295,7 +2295,8 @@ void Application::runApplication(void)
flock->lock();
}
catch (const boost::interprocess::interprocess_exception& e) {
Base::Console().Warning("Failed to create a file lock for the IPC: %s\n", e.what());
QString msg = QString::fromLocal8Bit(e.what());
Base::Console().Warning("Failed to create a file lock for the IPC: %s\n", msg.toUtf8().constData());
}
Base::Console().Log("Init: Executing event loop...\n");
@@ -2457,7 +2458,8 @@ void Application::checkForPreviousCrashes()
}
}
catch (const boost::interprocess::interprocess_exception& e) {
Base::Console().Warning("Failed check for previous crashes because of IPC error: %s\n", e.what());
QString msg = QString::fromLocal8Bit(e.what());
Base::Console().Warning("Failed check for previous crashes because of IPC error: %s\n", msg.toUtf8().constData());
}
}