Skip to content

Commit

Permalink
fix: improve error
Browse files Browse the repository at this point in the history
  • Loading branch information
df-wg committed Jan 8, 2025
1 parent 21c52e9 commit 411b670
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewRedisCloser(opts *RedisCloserOptions) (RDCloser, error) {
Password: opts.Password,
})
if !isFunctioningClient(rdb) {
return rdb, fmt.Errorf("failed to create a functioning redis client")
return rdb, fmt.Errorf("failed to create a functioning redis client. Ensure that you have provided multiple cluster URLs for a cluster client")
}
}

Expand Down

0 comments on commit 411b670

Please sign in to comment.