api7 / lua-resty-etcd

Nonblocking Lua etcd driver library for OpenResty

Home Page:https://api7.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

change: return error message directly

membphis opened this issue · comments

We should use the same style between different models.

if err then
if self.is_cluster then
err = 'fail request to: ' .. uri .. ' err:' .. tostring(err)
end
return nil, err
end