Skip to content

Commit

Permalink
update client_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
eiixy committed Sep 23, 2024
1 parent 9822ff0 commit 1594268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (c *Client) handleErrorResp(resp *http.Response) error {
if !strings.HasPrefix(resp.Header.Get("Content-Type"), "application/json") {
body, err := io.ReadAll(resp.Body)
if err != nil {
return fmt.Errorf("error, reading response body: %s", err)
return fmt.Errorf("error, reading response body: %w", err)
}
return fmt.Errorf("error, status code: %d, status: %s, body: %s", resp.StatusCode, resp.Status, body)
}
Expand Down

0 comments on commit 1594268

Please sign in to comment.