Skip to content

Commit a0d50be

Browse files
authored
fix: return original error (#61)
1 parent 96ce09d commit a0d50be

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/resty/etcd/v2.lua

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,6 @@ local function _request(self, method, uri, opts, timeout)
156156

157157
local http_cli, err = http.new()
158158
if err then
159-
if self.is_cluster then
160-
err = 'fail to instance Http, request url:' .. uri .. ' err:'
161-
.. tostring(err)
162-
end
163159
return nil, err
164160
end
165161

@@ -183,9 +179,6 @@ local function _request(self, method, uri, opts, timeout)
183179
})
184180

185181
if err then
186-
if self.is_cluster then
187-
err = 'fail request to: ' .. uri .. ' err:' .. tostring(err)
188-
end
189182
return nil, err
190183
end
191184

0 commit comments

Comments
 (0)