Skip to content

Commit

Permalink
fixed newError()
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Nov 9, 2024
1 parent 50d87b6 commit dee6416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rest_shim.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ func (e *UnexpectedResponseError) Error() string {
// newError creates a new error condition to be returned.
func newError(method, url string, expected []int, got *httpResponse) error {
return &UnexpectedResponseError{
URL: url,
Expected: expected,
Actual: got.Code,
Method: method,
URL: url,
Data: got.Data,
}
}
Expand Down

0 comments on commit dee6416

Please sign in to comment.