diff --git a/mock.go b/mock.go index 9b862fd..b522009 100644 --- a/mock.go +++ b/mock.go @@ -113,7 +113,7 @@ func (h redisClientHook) ProcessPipelineHook(_ redis.ProcessPipelineHook) redis. err = h.returnErr } if err != nil { - return err + cmd.SetErr(err) } } return nil