optimze(state/redis): output detail redis error
@@ -313,7 +313,7 @@ func (r *StateStore) setValue(req *state.SetRequest) error {
if req.Options.Consistency == state.Strong && r.replicas > 0 {
_, err = r.client.DoContext(context.Background(), "WAIT", r.replicas, 1000).Result()
if err != nil {
- return fmt.Errorf("timed out while waiting for %v replicas to acknowledge write", r.replicas)
+ return fmt.Errorf("redis waiting for %v replicas to acknowledge write, err: %s", r.replicas, err.Error())
}
}
