Use exception logger for the memory locking error

This commit is contained in:
Robbert van der Helm
2021-07-23 15:53:19 +02:00
parent 1a34a80c21
commit 5c3491c1e1
4 changed files with 23 additions and 15 deletions
+3
View File
@@ -54,8 +54,11 @@ bool InitModule() {
return true;
} catch (const std::exception& error) {
Logger logger = Logger::create_exception_logger();
logger.log("");
logger.log("Error during initialization:");
logger.log(error.what());
logger.log("");
// Also show a desktop notification most people likely won't see the
// above message