Minor. Report rate-limiter errors correctly.

This commit is contained in:
Dimitrij Denissenko 2015-01-31 12:04:30 +00:00
parent 70c4c19f1d
commit 5280246642
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ func newConnPool(dial func() (*conn, error), opt *options) *connPool {
func (p *connPool) new() (*conn, error) {
if !p.rl.Check() {
err := fmt.Errorf(
"redis: you open connections too fast (last error: %s)",
"redis: you open connections too fast (last error: %v)",
p.lastDialErr,
)
return nil, err