From 0de1b12b5d843845900f079918679ef669792fc3 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Fri, 22 Mar 2013 09:20:09 +0100 Subject: [PATCH] luainstance: show errors from loadfile() Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/9bdc0309a727545a3fe106d2367613edc02752d0 Author: Stefan Seyfried Date: 2013-03-22 (Fri, 22 Mar 2013) --- src/gui/luainstance.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/luainstance.cpp b/src/gui/luainstance.cpp index d789a38a5..5e0457809 100644 --- a/src/gui/luainstance.cpp +++ b/src/gui/luainstance.cpp @@ -76,6 +76,7 @@ void CLuaInstance::runScript(const char *fileName) int status = luaL_loadfile(lua, fileName); if (status) { fprintf(stderr, "[CLuaInstance::%s] Can't load file: %s\n", __func__, lua_tostring(lua, -1)); + ShowMsg2UTF("Lua script error:", lua_tostring(lua, -1), CMsgBox::mbrBack, CMsgBox::mbBack); return; }