mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Catch all exceptions during initialization
This commit is contained in:
@@ -243,7 +243,7 @@ void GroupBridge::accept_requests() {
|
||||
handle_plugin_run(plugin_id, plugin_ptr);
|
||||
}),
|
||||
std::move(bridge));
|
||||
} catch (const std::runtime_error& error) {
|
||||
} catch (const std::exception& error) {
|
||||
logger.log("Error while initializing '" + request.plugin_path +
|
||||
"':");
|
||||
logger.log(error.what());
|
||||
|
||||
@@ -103,7 +103,7 @@ __cdecl
|
||||
return 1;
|
||||
break;
|
||||
};
|
||||
} catch (const std::runtime_error& error) {
|
||||
} catch (const std::exception& error) {
|
||||
std::cerr << "Error while initializing the Wine plugin host:"
|
||||
<< std::endl;
|
||||
std::cerr << error.what() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user