lib/pupa/processor/middleware/raise_error.rb in pupa-0.0.13 vs lib/pupa/processor/middleware/raise_error.rb in pupa-0.1.0
- old
+ new
@@ -2,9 +2,10 @@
class Processor
module Middleware
# A Faraday response middleware for raising an error if unsuccessful.
#
# @see Faraday::Response::RaiseError
+ # @note Faraday has no tests for this middleware.
class RaiseError < Faraday::Response::Middleware
def on_complete(env)
case env[:status]
when 404
raise Faraday::Error::ResourceNotFound, response_values(env)