aboutsummaryrefslogtreecommitdiff
path: root/src/shared/lua_api/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/lua_api/common.cpp')
-rw-r--r--src/shared/lua_api/common.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shared/lua_api/common.cpp b/src/shared/lua_api/common.cpp
index 57d1db0..1ee4b72 100644
--- a/src/shared/lua_api/common.cpp
+++ b/src/shared/lua_api/common.cpp
@@ -261,10 +261,11 @@ int errfunc(lua_State *L){
lua_pop(L, 2);
return 1;
}
- lua_pushvalue(L, -4); //error,{debug},print,debug.traceback,error
+ //lua_pushvalue(L, -4); //error,{debug},print,debug.traceback,error
//lua_pushinteger(L, 3); //error,{debug},print,debug.traceback,error,2
- lua_call(L, 2, 1);//error,{debug},print,str_traceback
- printf("Error:%s\n",lua_tostring(L,-1));
+ lua_call(L, 0, 1);
+ //lua_call(L, 2, 1);//error,{debug},print,str_traceback
+ printf("--------------------------\n");
lua_call(L,1,0);//error,{debug}
lua_pop(L,1);
printf("Returning");