diff --git a/src/wine-host/bridges/group.cpp b/src/wine-host/bridges/group.cpp index 66e08c82..7c29c473 100644 --- a/src/wine-host/bridges/group.cpp +++ b/src/wine-host/bridges/group.cpp @@ -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()); diff --git a/src/wine-host/individual-host.cpp b/src/wine-host/individual-host.cpp index 110c573e..c536cab0 100644 --- a/src/wine-host/individual-host.cpp +++ b/src/wine-host/individual-host.cpp @@ -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;