This commit is contained in:
vvdvortsova 2026-06-23 16:29:08 +03:00 committed by GitHub
commit d3f5ac0393
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,6 +288,7 @@ func downloadBuild(qs url.Values) (*http.Response, error) {
return nil, fmt.Errorf("secure request failed: %v", err)
}
if resp.StatusCode >= 400 {
defer resp.Body.Close()
var details struct {
StatusCode int `json:"status_code"`
Error struct {