mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 05:51:38 +02:00
Add logging for github rate limiting
This commit is contained in:
parent
8048563808
commit
7ffe5fc1e2
@ -31,6 +31,7 @@ func UpdateReleaseVersion() error {
|
||||
return fmt.Errorf("failed to read github API response body: %w", err)
|
||||
}
|
||||
if resp.StatusCode == 403 && strings.Contains(string(respBody), "API rate limit exceeded for ") {
|
||||
fmt.Printf("failed to update release version due to 403 err, body=%#v\n", string(respBody))
|
||||
return nil
|
||||
}
|
||||
if resp.StatusCode != 200 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user