bugfix: pop error message when load file not exist

This commit is contained in:
云风
2013-12-17 19:57:33 +08:00
parent 45196be66a
commit 4dd6e566be

View File

@@ -93,6 +93,7 @@ _try_load(lua_State *L, const char * path, int pathlen, const char * name) {
lua_pop(L,1);
return 0;
} else if (r == LUA_ERRFILE) {
lua_pop(L,1);
return -1;
}
return 1;