mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
pcall->xpcall
This commit is contained in:
@@ -84,7 +84,7 @@ return function (name , G, loader)
|
||||
end
|
||||
|
||||
setmetatable(G, { __index = env , __newindex = init_system })
|
||||
local ok, err = pcall(mainfunc)
|
||||
local ok, err = xpcall(mainfunc, debug.traceback)
|
||||
setmetatable(G, nil)
|
||||
assert(ok,err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user