Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed newError()
Browse files Browse the repository at this point in the history
vtopc committed Nov 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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,
}
}

0 comments on commit dee6416

Please sign in to comment.