lib/elastic/app-search/exceptions.rb in elastic-app-search-0.7.0 vs lib/elastic/app-search/exceptions.rb in elastic-app-search-7.2.0

- old
+ new

@@ -7,10 +7,10 @@ @errors = if response.is_a?(Array) response.flat_map { |r| r['errors'] } else response['errors'] || [response] end - message = (errors.count == 1) ? "Error: #{errors.first}" : "Errors: #{errors.inspect}" + message = (errors.size == 1) ? "Error: #{errors.first}" : "Errors: #{errors.inspect}" super(message) end end class NonExistentRecord < ClientException; end