diff --git a/client/client.go b/client/client.go index 81f96d6..6736d55 100644 --- a/client/client.go +++ b/client/client.go @@ -37,7 +37,12 @@ type HttpError struct { } func (e *HttpError) Error() string { - return fmt.Sprintf("Failed request status %d for url: (%s)", e.StatusCode, e.URL.RequestURI()) + return fmt.Sprintf( + "Failed request status %d for url: (%s), body: (%s)", + e.StatusCode, + e.URL.RequestURI(), + string(e.Body), + ) } type HttpErrorHandler func(res *http.Response, uri string) error