Merge pull request #5259 from betagouv/verbose_api_entreprise_exceptions
more verbose exception when RequestFailed for apientreprise occurs
This commit is contained in:
commit
51c0c83860
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