We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e20d550 commit ffd4863Copy full SHA for ffd4863
lualib/redis.lua
@@ -201,13 +201,17 @@ local function read_exec(fd)
201
for i = 1,n do
202
local ok, r = read_response(fd)
203
result[i] = r
204
- if not err then
205
- err = {}
206
- for j = 1, i-1 do
207
- err[j] = true
+ if err then
+ err[i] = ok
+ else
+ if ok == false then
208
+ err = {}
209
+ for j = 1, i-1 do
210
+ err[j] = true
211
+ end
212
+ err[i] = false
213
end
214
- err[i] = ok
215
216
return result, err
217
0 commit comments