lib/intercom/collection_proxy.rb in intercom-2.2.4 vs lib/intercom/collection_proxy.rb in intercom-2.3.0

- old
+ new

@@ -19,9 +19,10 @@ if next_page response_hash = Intercom.get(next_page, {}) else response_hash = Intercom.get(@finder_url, @finder_params) end + raise Intercom::HttpError.new('Http Error - No response entity returned') unless response_hash deserialize_response_hash(response_hash, block) next_page = extract_next_link(response_hash) break if next_page.nil? end self