Skip to content

Commit

Permalink
attach resp.body in the error
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <[email protected]>
  • Loading branch information
lance6716 committed Dec 18, 2023
1 parent 7bebbe7 commit 034ae3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/pkg/storage/gcs_extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (w *GCSWriter) finalizeXMLMPU() error {
}

if resp.StatusCode() != http.StatusOK {
return fmt.Errorf("POST request returned non-OK status: %d", resp.StatusCode())
return fmt.Errorf("POST request returned non-OK status: %d, body: %s", resp.StatusCode(), resp.String())
}
return nil
}
Expand Down

0 comments on commit 034ae3e

Please sign in to comment.