summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_actions.cc
diff options
context:
space:
mode:
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;
}