Skip to content

Commit

Permalink
Fix error handling in telegram/auth.go
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarnathCJD committed Apr 26, 2024
1 parent 72e9b3e commit 9dcf3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (c *Client) ScrapeAppConfig(config ...*ScrapeConfig) (int32, string, bool,
}

if err := json.NewDecoder(respCode.Body).Decode(&result); err != nil {
return 0, "", false, err
return 0, "", false, errors.Wrap(err, "Too many requests, try again later")
}

code, err := conf.WebCodeCallback()
Expand Down

0 comments on commit 9dcf3fd

Please sign in to comment.