output URL in the https response error message
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Steven Polley 2025-05-07 12:14:48 -06:00
parent a34dca1076
commit 3fbfbab7d6

View File

@ -53,7 +53,7 @@ func (c *client) processResponse(res *http.Response, out interface{}) error {
}
if res.StatusCode != 200 {
return fmt.Errorf("got http response status '%d' but expected 200", res.StatusCode)
return fmt.Errorf("got http response status '%d' but expected 200 for request at URL '%s'", res.StatusCode, res.Request.URL)
}
err = json.Unmarshal(body, out)