no formatting directive in Errorf call

This commit is contained in:
Bruce Marriner 2016-01-27 23:34:57 -06:00
parent 9c5cd00d34
commit 21272c5460

View file

@ -102,7 +102,7 @@ func (s *Session) Request(method, urlStr string, data interface{}) (response []b
rl := RateLimit{}
err = json.Unmarshal(response, &rl)
if err != nil {
err = fmt.Errorf("Request unmarshal rate limit error : ", err)
err = fmt.Errorf("Request unmarshal rate limit error : %+v", err)
return
}
time.Sleep(rl.RetryAfter)