lib/flexirest/request.rb in flexirest-1.5.6 vs lib/flexirest/request.rb in flexirest-1.5.7
- old
+ new
@@ -740,10 +740,11 @@
@raw_response = options[:raw_response]
@method = options[:method]
end
def message
- "Sending #{@method.upcase} to '#{@request_url}' returned a #{@status} with the body of - #{@raw_response}"
+ method = @method.try(:upcase)
+ "Sending #{method} to '#{@request_url}' returned a #{@status} with the body of - #{@raw_response}"
end
end
class HTTPClientException < HTTPException ; end
class HTTPUnauthorisedClientException < HTTPClientException ; end
class HTTPBadRequestClientException < HTTPClientException ; end