Skip to content

Commit 46dff36

Browse files
committed
set error if queued fails
1 parent 65e1c22 commit 46dff36

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

redis.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,12 @@ func txPipelineReadQueued(rd *proto.Reader, statusCmd *StatusCmd, cmds []Cmder)
703703
}
704704

705705
// Parse +QUEUED.
706-
for range cmds {
707-
if err := statusCmd.readReply(rd); err != nil && !isRedisError(err) {
708-
return err
706+
for _, cmd := range cmds {
707+
if err := statusCmd.readReply(rd); err != nil {
708+
cmd.SetErr(err)
709+
if !isRedisError(err) {
710+
return err
711+
}
709712
}
710713
}
711714

0 commit comments

Comments
 (0)