Fix handling of deprecation error reporting for removed values
This commit is contained in:
parent
ef460ae7e5
commit
ee305d4ff1
@ -397,7 +397,17 @@
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
recurse(value)
|
local ok, err = pcall(function ()
|
||||||
|
recurse(value)
|
||||||
|
end)
|
||||||
|
|
||||||
|
if not ok then
|
||||||
|
if type(err) == "table" then
|
||||||
|
err = err.msg
|
||||||
|
end
|
||||||
|
error(err, 3)
|
||||||
|
end
|
||||||
|
|
||||||
configset.remove(target, field, removes)
|
configset.remove(target, field, removes)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user