method
with_response
v2_4_6 -
Show latest stable
- Class:
Gem::GemcutterUtilities
with_response(response, error_prefix = nil)public
If response is an HTTP Success (2XX) response, yields the response if a block was given or shows the response body to the user.
If the response was not successful, shows an error to the user including the error_prefix and the response body.