Fix error handling in debug builds
This commit is contained in:
parent
d77a856629
commit
6a04a82123
@ -357,7 +357,7 @@ int load_builtin_scripts(lua_State* L)
|
||||
|
||||
/* hand off control to the scripts */
|
||||
lua_getglobal(L, "_premake_main");
|
||||
if (lua_pcall(L, 0, 1, -3) != OKAY)
|
||||
if (lua_pcall(L, 0, 1, -2) != OKAY)
|
||||
{
|
||||
printf(ERROR_MESSAGE, lua_tostring(L, -1));
|
||||
return !OKAY;
|
||||
|
Reference in New Issue
Block a user