mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Show startup errors in a desktop notification
This should make it much easier to spot what goes wrong if you're new to yabridge and don't know where to look yet.
This commit is contained in:
@@ -53,6 +53,10 @@ extern "C" VST_EXPORT AEffect* VSTPluginMain(
|
||||
logger.log("Error during initialization:");
|
||||
logger.log(error.what());
|
||||
|
||||
// Also show a desktop notification most people likely won't see the
|
||||
// above message
|
||||
send_notification("Failed to initialize VST2 plugin", error.what());
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,6 +55,10 @@ bool InitModule() {
|
||||
logger.log("Error during initialization:");
|
||||
logger.log(error.what());
|
||||
|
||||
// Also show a desktop notification most people likely won't see the
|
||||
// above message
|
||||
send_notification("Failed to initialize VST3 plugin", error.what());
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user