Skip to content

Commit

Permalink
fix(redis): Update error message for key not found in Del method
Browse files Browse the repository at this point in the history
  • Loading branch information
bartventer committed Jun 19, 2024
1 parent 5ecf720 commit b92eebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (r *redisCache) Del(ctx context.Context, key string, modifiers ...keymod.Mo
return gcerrors.NewWithScheme(Scheme, fmt.Errorf("error deleting key %s: %w", key, err))
}
if delCount == 0 {
return gcerrors.NewWithScheme(Scheme, errors.Join(cache.ErrKeyNotFound, fmt.Errorf("key %s not found: %w", key, err)))
return gcerrors.NewWithScheme(Scheme, errors.Join(cache.ErrKeyNotFound, fmt.Errorf("key %s not found", key)))
}
return nil
}
Expand Down

0 comments on commit b92eebb

Please sign in to comment.