Fixed scoping issue in previous commit
This commit is contained in:
parent
883bfcd48d
commit
e1fa699109
@ -696,8 +696,9 @@
|
||||
error({ msg="expected string; got table" })
|
||||
end
|
||||
|
||||
if value then
|
||||
local value, err = api.checkvalue(value, field)
|
||||
if value ~= nil then
|
||||
local err
|
||||
value, err = api.checkvalue(value, field)
|
||||
if err then
|
||||
error { msg=err }
|
||||
end
|
||||
|
Reference in New Issue
Block a user