Add logging for github rate limiting

This commit is contained in:
David Dworken 2023-10-07 20:54:26 -07:00
parent 8048563808
commit 7ffe5fc1e2
No known key found for this signature in database

View File

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