mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +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);
|
handle_plugin_run(plugin_id, plugin_ptr);
|
||||||
}),
|
}),
|
||||||
std::move(bridge));
|
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 while initializing '" + request.plugin_path +
|
||||||
"':");
|
"':");
|
||||||
logger.log(error.what());
|
logger.log(error.what());
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ __cdecl
|
|||||||
return 1;
|
return 1;
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
} catch (const std::runtime_error& error) {
|
} catch (const std::exception& error) {
|
||||||
std::cerr << "Error while initializing the Wine plugin host:"
|
std::cerr << "Error while initializing the Wine plugin host:"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
std::cerr << error.what() << std::endl;
|
std::cerr << error.what() << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user