diff --git a/cache/cache.go b/cache/cache.go index d4661f7..42c4222 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -55,7 +55,7 @@ func NewRedis(redisHost string, redisPort string, prefix string) (*RedisClient, client := redis.NewClient(&opts) _, err := client.Ping().Result() if err != nil { - return nil, errors.New("could not ping REDIS") + return nil, fmt.Errorf("could not ping REDIS: %w", err) } redisClient := &RedisClient{