diff options
author | chai <chaifix@163.com> | 2018-10-31 08:33:22 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-31 08:33:22 +0800 |
commit | a6868deda1af419822d1610c0ca8b81413519393 (patch) | |
tree | 7868c70ad6e79b8e8705381489c729e48663c570 /src/lua/common/je_lua_error.h | |
parent | 3d664c69fd558730eba34bed24ca42a6a8559f9f (diff) |
*更新错误处理
Diffstat (limited to 'src/lua/common/je_lua_error.h')
-rw-r--r-- | src/lua/common/je_lua_error.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/common/je_lua_error.h b/src/lua/common/je_lua_error.h index 500994f..3f7e76f 100644 --- a/src/lua/common/je_lua_error.h +++ b/src/lua/common/je_lua_error.h @@ -17,8 +17,9 @@ namespace JinEngine va_start(args, fmt); vsnprintf(err + strlen(err), FORMAT_MSG_BUFFER_SIZE, fmt, args); va_end(args); - luax_getglobal(L, "jin"); - luax_setfieldstring(L, "error", err); + //luax_getglobal(L, "jin"); + //luax_setfieldstring(L, "error", err); + luax_error(L, err); } } // namespace Lua |