summaryrefslogtreecommitdiff
path: root/libs/ardour/luascripting.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/luascripting.cc')
-rw-r--r--libs/ardour/luascripting.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/ardour/luascripting.cc b/libs/ardour/luascripting.cc
index 156c9bbe66..bf26074011 100644
--- a/libs/ardour/luascripting.cc
+++ b/libs/ardour/luascripting.cc
@@ -220,12 +220,20 @@ LuaScripting::scan_script (const std::string &fn, const std::string &sc)
#endif
return LuaScriptInfoPtr();
}
- } catch (...) { // luabridge::LuaException
+ } catch (luabridge::LuaException const& e) {
+#ifndef NDEBUG
+ cerr << "Exception: Failed to parse lua script fn: '"<< fn << "' " << e.what () << "\n";
+#endif
+ PBD::warning << "Exception: Failed to parse lua script fn: '"<< fn << "' " << e.what () << "\n";
+ return LuaScriptInfoPtr();
+ } catch (...) {
#ifndef NDEBUG
- cerr << "failed to parse lua script\n";
+ cerr << "Exception: Failed to parse lua script fn: '"<< fn << "'\n";
#endif
+ PBD::warning << "Exception: Failed to parse lua script fn: '"<< fn << "'\n";
return LuaScriptInfoPtr();
}
+
luabridge::LuaRef nfo = luabridge::getGlobal (L, "ardourluainfo");
if (nfo.type() != LUA_TTABLE) {
#ifndef NDEBUG