diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-18 18:13:32 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-18 18:16:12 +0200 |
commit | 606d6de4b14a21833b6930c250d9a31a5293bac1 (patch) | |
tree | d076987323a6c5eb05361d6cdb09c983dfe7118b /gtk2_ardour/session_dialog.cc | |
parent | a2f07f66a5a42553adf1021970bd5c20849df13e (diff) |
Consistent Lua script error and print() output 2/2
Diffstat (limited to 'gtk2_ardour/session_dialog.cc')
-rw-r--r-- | gtk2_ardour/session_dialog.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index be8b067b92..fd4d43d8b6 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -203,12 +203,15 @@ SessionDialog::meta_master_bus_profile (std::string script_path) try { err = lua.do_file (script_path); } catch (luabridge::LuaException const& e) { +#ifndef NDEBUG + cerr << "LuaException:" << e.what () << endl; +#endif + PBD::warning << "LuaException: " << e.what () << endmsg; err = -1; } catch (...) { err = -1; } - if (err) { return UINT32_MAX; } |