summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-19 01:05:08 +0200
committerRobin Gareus <robin@gareus.org>2017-08-19 01:06:44 +0200
commit2cc32456ab5bfce4f21d10b28e40f44293c987aa (patch)
tree25597747939d244f51e3a296e3cf7799936b4ff2 /gtk2_ardour/ardour_ui.cc
parentfb745cc5a882cd4e3a49ff1f565cb69a65575993 (diff)
Lua may call C++ functions with throw. Catch them
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index d3b07badb9..8d931bbbd3 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -3927,8 +3927,7 @@ ARDOUR_UI::route_setup_info (const std::string& script_path)
}
} catch (luabridge::LuaException const& e) {
cerr << "LuaException:" << e.what () << endl;
- return rv;
- }
+ } catch (...) { }
return rv;
}
@@ -3976,6 +3975,8 @@ ARDOUR_UI::meta_route_setup (const std::string& script_path)
}
} catch (luabridge::LuaException const& e) {
cerr << "LuaException:" << e.what () << endl;
+ } catch (...) {
+ display_insufficient_ports_message ();
}
}
@@ -4006,6 +4007,8 @@ ARDOUR_UI::meta_session_setup (const std::string& script_path)
}
} catch (luabridge::LuaException const& e) {
cerr << "LuaException:" << e.what () << endl;
+ } catch (...) {
+ display_insufficient_ports_message ();
}
}