lib/buildbox/api.rb in buildbox-0.1.1 vs lib/buildbox/api.rb in buildbox-0.1.4
- old
+ new
@@ -25,15 +25,16 @@
def connection
@connection ||= Faraday.new(:url => @config.api_endpoint) do |faraday|
faraday.request :json
- faraday.response :logger
+ faraday.response :logger, Buildbox.logger
faraday.response :mashify
# json needs to come after mashify as it needs to run before the mashify
# middleware.
faraday.response :json
+ faraday.response :raise_error
faraday.adapter Faraday.default_adapter
end
end