diff options
Diffstat (limited to 'web/error.go')
| -rw-r--r-- | web/error.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/error.go b/web/error.go index 051d61d..d5ff31a 100644 --- a/web/error.go +++ b/web/error.go @@ -13,6 +13,8 @@ import ( // NewError creates an Error based on an expected HTTP status code vs data populated // from an HTTP response. +// +// This consumes the body of the HTTP response. func NewError(wantStatusCode int, resp *http.Response) error { data, err := ioutil.ReadAll(resp.Body) if err != nil { |
