Class: CassetteRack::Response::RaiseError
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- CassetteRack::Response::RaiseError
- Defined in:
- lib/cassette-rack/response/raise_error.rb
Instance Method Summary collapse
Instance Method Details
#on_complete(env) ⇒ Object
6 7 8 9 10 |
# File 'lib/cassette-rack/response/raise_error.rb', line 6 def on_complete(env) if error = CassetteRack::Response::Error.status(env) raise error end end |