Method: Radiator::ErrorParser#error_match?
- Defined in:
- lib/radiator/error_parser.rb
permalink #error_match?(matches) ⇒ Boolean
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/radiator/error_parser.rb', line 196 def error_match?(matches) matches = [matches].flatten any = matches.map do |match| case match when String @error['message'] && @error['message'].include?(match) when ::Array if @error['message'] match.map { |m| m.include?(match) }.include? true else false end else; false end end any.include?(true) end |