mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-10 14:22:16 +02:00
Use exception logger for the memory locking error
This commit is contained in:
@@ -51,8 +51,11 @@ extern "C" VST_EXPORT AEffect* VSTPluginMain(
|
||||
return &bridge->plugin;
|
||||
} 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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user