output URL in the https response error message
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a34dca1076
commit
3fbfbab7d6
@ -53,7 +53,7 @@ func (c *client) processResponse(res *http.Response, out interface{}) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if res.StatusCode != 200 {
|
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)
|
err = json.Unmarshal(body, out)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user