lib/bunny_app/client.rb in bunny_app-2.0.0 vs lib/bunny_app/client.rb in bunny_app-2.0.1
- old
+ new
@@ -74,10 +74,13 @@
query(query, variables, retries)
when /403/ # HTTP 403
raise AuthorizationError, res.parsed_response['error_decscription']
else
- raise ResponseError, res.body # HTTP 400, 500 etc
+ # HTTP 400, 500 etc
+ puts "Bunny SDK Response Error Headers: #{res.headers}"
+ puts "Bunny SDK Response Error Body: #{res.body}"
+ raise ResponseError, res.body
end
end
# Performs the api request within a new Thread, so it is non blocking.
# Consider it fire and forget