Correção no tratamento de exceções da configuração

parent 9456b1b3
......@@ -1396,8 +1396,12 @@ return function(...)
local ok, res = pcall(conn.configuration[method],
conn.configuration, param)
if not ok then
print('[ERRO]: '..res.message)
return false
if res and res.message then
print('[ERRO]: '..res.message)
return false
else
error(res)
end
end
return ok, res
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment