Catch all exceptions during initialization

This commit is contained in:
Robbert van der Helm
2021-05-01 18:48:46 +02:00
parent 5c2da36ecd
commit bbc93d7413
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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());
+1 -1
View File
@@ -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;