From b92eebb62d9e703eac236de00b11dfd3a284ba0f Mon Sep 17 00:00:00 2001 From: Bart Venter Date: Wed, 19 Jun 2024 13:34:52 +0000 Subject: [PATCH] fix(redis): Update error message for key not found in Del method --- redis/redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/redis.go b/redis/redis.go index d012f82..a57e4a5 100644 --- a/redis/redis.go +++ b/redis/redis.go @@ -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 }