lib/ably/rest/middleware/external_exceptions.rb in ably-1.2.0 vs lib/ably/rest/middleware/external_exceptions.rb in ably-1.2.1

- old
+ new

@@ -3,10 +3,10 @@ module Ably module Rest module Middleware # HTTP exceptions raised due to a status code error on a 3rd party site # Used by auth calls - class ExternalExceptions < Faraday::Response::Middleware + class ExternalExceptions < Faraday::Middleware def on_complete(env) if env.status >= 400 error_status_code = env.status message = "Error #{error_status_code}: #{(env.body || '')[0...200]}"