lib/bugsnag/api/response/raise_error.rb in bugsnag-api-2.1.1 vs lib/bugsnag/api/response/raise_error.rb in bugsnag-api-3.0.0
- old
+ new
@@ -6,10 +6,10 @@
# Faraday response middleware
module Response
# This class raises an Bugsnag-flavored exception based
# HTTP status codes returned by the API
- class RaiseError < Faraday::Response::Middleware
+ class RaiseError < Faraday::Response::RaiseError
def on_complete(response)
if error = Bugsnag::Api::Error.from_response(response)
raise error
end
end