diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-19 01:05:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-19 01:06:44 +0200 |
commit | 2cc32456ab5bfce4f21d10b28e40f44293c987aa (patch) | |
tree | 25597747939d244f51e3a296e3cf7799936b4ff2 /gtk2_ardour/session_dialog.cc | |
parent | fb745cc5a882cd4e3a49ff1f565cb69a65575993 (diff) |
Lua may call C++ functions with throw. Catch them
Diffstat (limited to 'gtk2_ardour/session_dialog.cc')
-rw-r--r-- | gtk2_ardour/session_dialog.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index d6c17e09ac..95f30ffcf7 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -221,8 +221,11 @@ SessionDialog::meta_master_bus_profile (std::string script_path) const err = lua.do_file (script_path); } catch (luabridge::LuaException const& e) { err = -1; + } catch (...) { + err = -1; } + if (err) { return UINT32_MAX; } |