summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-18 18:13:14 +0200
committerRobin Gareus <robin@gareus.org>2020-04-18 18:16:12 +0200
commita2f07f66a5a42553adf1021970bd5c20849df13e (patch)
tree7bfcfb868c613f3f591801d4b8cd35b9ce80b707 /libs/ardour/session_state.cc
parenta4cfdd338df0f15be3c983fd9e22988f97b66fed (diff)
Consistent Lua script error and print() output 1/2
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 9b3b67c285..8b32648123 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -1782,7 +1782,10 @@ Session::set_state (const XMLNode& node, int version)
Glib::Threads::Mutex::Lock lm (lua_lock);
(*_lua_load)(std::string ((const char*)buf, size));
} catch (luabridge::LuaException const& e) {
+#ifndef NDEBUG
cerr << "LuaException:" << e.what () << endl;
+#endif
+ warning << "LuaException: " << e.what () << endmsg;
} catch (...) { }
g_free (buf);
}