Skip to content

Commit

Permalink
Update storage/redis_cluster.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Aug 5, 2023
1 parent 9b37044 commit c0e2bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/redis_cluster.go
Expand Up @@ -145,8 +145,8 @@ func (r *RedisCluster) singleton() (redis.UniversalClient, error) {
}
instance := r.RedisController.singleton(r.IsCache, r.IsAnalytics)
if instance == nil {
// Modify the error message to include more specific details about the connection failure
return nil, fmt.Errorf("Error trying to get singleton instance: %s. Check if the hostname failed to resolve, if the TCP request timed out, if Redis prompted for a password, if Redis responded with WRONGPASS, or if SSL failed.", ErrRedisIsDown)
// Modify the error message to clarify that these are potential issues to check for
return nil, fmt.Errorf("Error trying to get singleton instance: %s. Potential issues to check: hostname resolution, TCP timeout, Redis password prompt, WRONGPASS response from Redis, SSL failure.", ErrRedisIsDown)
}
return instance, nil
}
Expand Down

0 comments on commit c0e2bd0

Please sign in to comment.