summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_actions.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-18 18:13:32 +0200
committerRobin Gareus <robin@gareus.org>2020-04-18 18:16:12 +0200
commit606d6de4b14a21833b6930c250d9a31a5293bac1 (patch)
treed076987323a6c5eb05361d6cdb09c983dfe7118b /gtk2_ardour/editor_actions.cc
parenta2f07f66a5a42553adf1021970bd5c20849df13e (diff)
Consistent Lua script error and print() output 2/2
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r--gtk2_ardour/editor_actions.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc
index c735600324..dcf30724bd 100644
--- a/gtk2_ardour/editor_actions.cc
+++ b/gtk2_ardour/editor_actions.cc
@@ -811,7 +811,10 @@ Editor::trigger_script_by_name (const std::string script_name)
fn (args)();
}
} catch (luabridge::LuaException const& e) {
+#ifndef NDEBUG
cerr << "LuaException:" << e.what () << endl;
+#endif
+ PBD::warning << "LuaException: " << e.what () << endmsg;
} catch (...) {
cerr << "Lua script failed: " << script_path << endl;
}