lib/zeppelin/middleware.rb in zeppelin-0.8.1 vs lib/zeppelin/middleware.rb in zeppelin-0.8.2
- old
+ new
@@ -1,7 +1,8 @@
class Zeppelin
module Middlware
end
end
-require 'zeppelin/middleware/json_parser'
require 'zeppelin/middleware/response_raise_error'
+
+Faraday.register_middleware :response, zeppelin_raise_error: Zeppelin::Middleware::ResponseRaiseError