lib/revo/loans_api/client.rb in revo-loans_api-0.0.31 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.32

- old
+ new

@@ -365,10 +365,13 @@ def parse_errors(response) if response.content_type.mime_type == API_CONTENT_TYPE parse(response) else - { errors: { base: [:unexpected_response] } } + { + errors: { base: [:unexpected_response] }, + raw_response: response.to_s.presence + } end end def url_for(endpoint) [base_url, endpoint].join('/')