Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Handle currency throwing error)
m (Fix pcall)
 
Line 319: Line 319:
-- Value
-- Value
function parse.value_func(val)
function parse.value_func(val)
local err, val = pcall(currency, val)
local status, val = pcall(currency, val)
if not err then
if status then
return val
return val
end
end