luainstance: show errors from loadfile()

This commit is contained in:
Stefan Seyfried
2013-03-22 09:20:09 +01:00
committed by M. Liebmann
parent 8dfa4c9bf8
commit 9bdc0309a7

View File

@@ -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;
}