Skip to content

Commit

Permalink
fix: cmd error in pipelines
Browse files Browse the repository at this point in the history
When a command in a pipeline produces an error, only this single command should fail and return an error.

However the currently implemented behavior is that the complete pipeline execution fails, which isn't resembling the behavior from Redis.
  • Loading branch information
jonasmeier1212 committed Jun 11, 2024
1 parent 80794c9 commit 5d265ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (h redisClientHook) ProcessPipelineHook(_ redis.ProcessPipelineHook) redis.
err = h.returnErr
}
if err != nil {
return err
cmd.SetErr(err)
}
}
return nil
Expand Down

0 comments on commit 5d265ea

Please sign in to comment.