lib/ably/rest/middleware/parse_json.rb in ably-0.1.0 vs lib/ably/rest/middleware/parse_json.rb in ably-0.1.1
- old
+ new
@@ -5,10 +5,10 @@
module Middleware
class ParseJson < Faraday::Response::Middleware
def parse(body)
JSON.parse(body, symbolize_names: true)
rescue JSON::ParserError => e
- raise InvalidResponseBody, "Expected JSON response. #{e.message}"
+ raise Ably::Exceptions::InvalidResponseBody, "Expected JSON response. #{e.message}"
end
end
end
end
end