Method: Puppet::Indirector::REST#convert_to_http_error
- Defined in:
- lib/vendor/puppet/indirector/rest.rb
#convert_to_http_error(response) ⇒ Object
60 61 62 63 |
# File 'lib/vendor/puppet/indirector/rest.rb', line 60 def convert_to_http_error(response) = "Error #{response.code} on SERVER: #{(response.body||'').empty? ? response. : uncompress_body(response)}" Net::HTTPError.new(, response) end |