Skip to content

Commit

Permalink
Merge pull request #26 from fastbill/improve-redis-error-logging
Browse files Browse the repository at this point in the history
Improve Redis error logging for cache
  • Loading branch information
perajovic authored May 5, 2020
2 parents 8063238 + 17f6f9f commit 6c4e494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 6c4e494

Please sign in to comment.