Method: Common::Client::Middleware::Response::RaiseCustomError#on_complete
- Defined in:
- lib/common/client/middleware/response/raise_custom_error.rb
#on_complete(env) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/common/client/middleware/response/raise_custom_error.rb', line 18 def on_complete(env) return if env.success? @body = env[:body] @status = env.status.to_i raise_error! end |