Browse Source

no formatting directive in Errorf call

Bruce Marriner 9 years ago
parent
commit
21272c5460
1 changed files with 1 additions and 1 deletions
  1. 1 1
      restapi.go

+ 1 - 1
restapi.go

@@ -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)