Fix handling of deprecation error reporting for removed values

This commit is contained in:
Jason Perkins 2014-09-22 16:30:05 -04:00
parent ef460ae7e5
commit ee305d4ff1

View File

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