Fix "Error: (null)" messages on startup if main script can't be located on disk
This commit is contained in:
parent
38c5b79840
commit
1ddb214cc3
@ -69,7 +69,7 @@ LUALIB_API int luaL_loadfile (lua_State* L, const char* filename)
|
||||
}
|
||||
|
||||
/* If the file exists but errors, pass that through */
|
||||
if (z != OKAY && z != LUA_ERRFILE) {
|
||||
if (test_name && z != OKAY && z != LUA_ERRFILE) {
|
||||
return z;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user