mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Unify exception handling style
This commit is contained in:
@@ -536,7 +536,7 @@ intptr_t Vst2PluginBridge::dispatch(AEffect* /*plugin*/,
|
||||
return_value = sockets.host_vst_dispatch.send_event(
|
||||
converter, std::pair<Vst2Logger&, bool>(logger, true),
|
||||
opcode, index, value, data, option);
|
||||
} catch (const boost::system::system_error& a) {
|
||||
} catch (const boost::system::system_error&) {
|
||||
// Thrown when the socket gets closed because the VST plugin
|
||||
// loaded into the Wine process crashed during shutdown
|
||||
logger.log("The plugin crashed during shutdown, ignoring");
|
||||
|
||||
@@ -217,7 +217,7 @@ Vst3PlugViewProxyImpl::setFrame(Steinberg::IPlugFrame* frame) {
|
||||
// try to call those functions from an `IRunLoop` event handler.
|
||||
try {
|
||||
run_loop_tasks.emplace(plug_frame);
|
||||
} catch (const std::runtime_error& e) {
|
||||
} catch (const std::runtime_error& error) {
|
||||
// In case the host does not support `IRunLoop` or if we can't
|
||||
// register an event handler, we'll throw during `RunLoopTasks`'
|
||||
// constructor
|
||||
@@ -226,7 +226,7 @@ Vst3PlugViewProxyImpl::setFrame(Steinberg::IPlugFrame* frame) {
|
||||
bridge.logger.log(
|
||||
"The host does not support IRunLoop, falling back to naive GUI "
|
||||
"function execution: " +
|
||||
std::string(e.what()));
|
||||
std::string(error.what()));
|
||||
}
|
||||
|
||||
return bridge.send_mutually_recursive_message(YaPlugView::SetFrame{
|
||||
|
||||
Reference in New Issue
Block a user