Method: HP::Cloud::ErrorResponse#error_message_includes?
- Defined in:
- lib/hpcloud/error_response.rb
#error_message_includes?(error, text) ⇒ Boolean
check to see if an error includes a particular text fragment
79 80 81 82 |
# File 'lib/hpcloud/error_response.rb', line 79 def (error, text) = error.respond_to?(:response) ? parse_error(error.response) : error. .include?(text) end |