mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
luainstance: show errors from loadfile()
Origin commit data
------------------
Commit: 9bdc0309a7
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)
This commit is contained in:
committed by
Michael Liebmann
parent
7e28b9762e
commit
0de1b12b5d
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user