Skip to content

Commit 77c0175

Browse files
FabHofdmcgowan
authored andcommitted
Improve ErrUnexpectedStatus default string
Signed-off-by: Fabian Hoffmann <[email protected]> (cherry picked from commit 894e780) Signed-off-by: Derek McGowan <[email protected]>
1 parent 74b207c commit 77c0175

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

remotes/errors/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type ErrUnexpectedStatus struct {
3333
}
3434

3535
func (e ErrUnexpectedStatus) Error() string {
36-
return fmt.Sprintf("unexpected status: %s", e.Status)
36+
return fmt.Sprintf("unexpected status from %s request to %s: %s", e.RequestMethod, e.RequestURL, e.Status)
3737
}
3838

3939
// NewUnexpectedStatusErr creates an ErrUnexpectedStatus from HTTP response

0 commit comments

Comments
 (0)