Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/api/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ func matchPath(p, expect string) bool {
}

// HandleHTTPError parses a http.Response into a HTTPError.
//
// The function attempts to read the response's body, but it does not close it.
func HandleHTTPError(resp *http.Response) error {
httpError := &HTTPError{
Headers: resp.Header,
Expand Down
Loading