pcall->xpcall

This commit is contained in:
hqwrong
2016-10-20 09:52:52 +08:00
parent 283c3f10fe
commit 5c508e45a7

View File

@@ -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)