From 528024664206493b627a51026907d7b7920b420e Mon Sep 17 00:00:00 2001 From: Dimitrij Denissenko Date: Sat, 31 Jan 2015 12:04:30 +0000 Subject: [PATCH] Minor. Report rate-limiter errors correctly. --- pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool.go b/pool.go index ffedb3d..288772c 100644 --- a/pool.go +++ b/pool.go @@ -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