Skip to content

Commit 7f7ddc0

Browse files
committed
reword error
1 parent 20c8bf1 commit 7f7ddc0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/intercom/api_operations/find.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def find(params)
1010
else
1111
response = Intercom.get("/#{collection_name}", params)
1212
end
13-
raise Intercom::HttpError.new('Http Error - No response returned') unless response
13+
raise Intercom::HttpError.new('Http Error - No response entity returned') unless response
1414
from_api(response)
1515
end
1616
end

lib/intercom/api_operations/load.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def load
88
else
99
raise "Cannot load #{self.class} as it does not have a valid id."
1010
end
11-
raise Intercom::HttpError.new('Http Error - No response returned') unless response
11+
raise Intercom::HttpError.new('Http Error - No response entity returned') unless response
1212
from_response(response)
1313
end
1414
end

lib/intercom/collection_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def each(&block)
2121
else
2222
response_hash = Intercom.get(@finder_url, @finder_params)
2323
end
24-
raise Intercom::HttpError.new('Http Error - No response returned') unless response_hash
24+
raise Intercom::HttpError.new('Http Error - No response entity returned') unless response_hash
2525
deserialize_response_hash(response_hash, block)
2626
next_page = extract_next_link(response_hash)
2727
break if next_page.nil?

0 commit comments

Comments
 (0)