class Redd::Response::RaiseError
Faraday Middleware that raises an error if there's one. @see Error
Public Instance Methods
on_complete(env)
click to toggle source
# File lib/redd/response/raise_error.rb, line 10 def on_complete(env) error = Redd::Error.from_response(env) fail error.new(env), env[:body] if error end