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 7, 2023
1 parent e23cfe0 commit 2912ab8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 be more concise and clear
return nil, fmt.Errorf("Error getting singleton instance: %s. Check for issues with hostname resolution, TCP timeout, Redis password prompt, WRONGPASS response from Redis, or SSL failure.", ErrRedisIsDown)
// Ensure the error message includes all necessary details about the connection failure
return nil, fmt.Errorf("Error getting singleton instance: %s. Please check for issues with hostname resolution, TCP timeout, Redis password prompt, WRONGPASS response from Redis, or SSL failure.", ErrRedisIsDown)
}
return instance, nil
}
Expand Down Expand Up @@ -1302,4 +1302,4 @@ func (r *RedisCluster) RemoveSortedSetRange(keyName, scoreFrom, scoreTo string)

func (r *RedisCluster) ControllerInitiated() bool {
return r.RedisController != nil
}
}

0 comments on commit 2912ab8

Please sign in to comment.