From dee641610b7b643b4e861dca6264fda6aafb8d14 Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Sat, 9 Nov 2024 12:45:56 +0200 Subject: [PATCH] fixed newError() --- rest_shim.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest_shim.go b/rest_shim.go index 8837257d..1a163fd8 100644 --- a/rest_shim.go +++ b/rest_shim.go @@ -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, } }