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, } }