mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 17:12: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
|
-- Metatable for tests
|
||||||
local metatable = {
|
local metatable = {
|
||||||
__call = function(self,name, ...)
|
__call = function(self,name, ...)
|
||||||
return pcall(self.func, name, ...)
|
return xpcall(self.func, debug.traceback, name, ...)
|
||||||
end,
|
end,
|
||||||
help = function(self)
|
help = function(self)
|
||||||
return "Params: " .. self.params .. "\n" .. self.description
|
return "Params: " .. self.params .. "\n" .. self.description
|
||||||
|
|
Loading…
Reference in a new issue