more verbose exception when RequestFailed for apientreprise occurs
This commit is contained in:
parent
d3fc810d23
commit
f9b1b8217a
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class ApiEntreprise::API
|
|||
elsif response.code == 400
|
||||
raise BadFormatRequest, "url: #{url}"
|
||||
else
|
||||
raise RequestFailed, "HTTP Error Code: #{response.code} for #{url}"
|
||||
raise RequestFailed, "HTTP Error Code: #{response.code} for #{url}\nheaders: #{response.headers}\nbody: #{response.body}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue