forked from pothtonswer/discordmuffin
no formatting directive in Errorf call
This commit is contained in:
parent
9c5cd00d34
commit
21272c5460
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue