mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
better error tracebacks
This commit is contained in:
parent
5381c31abb
commit
d006a91eaa
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
-- Metatable for tests
|
||||
local metatable = {
|
||||
__call = function(self,name, ...)
|
||||
return pcall(self.func, name, ...)
|
||||
return xpcall(self.func, debug.traceback, name, ...)
|
||||
end,
|
||||
help = function(self)
|
||||
return "Params: " .. self.params .. "\n" .. self.description
|
||||
|
|
Loading…
Reference in a new issue