api: fix formatting error when a request fails

This commit is contained in:
Pierre de La Morinerie 2019-01-02 16:16:15 +01:00
parent 3ed3b77e55
commit da675bb47e

View file

@ -69,7 +69,7 @@ class Helpscout::API
response = call_api(:get, 'reports/conversations?' + params.to_query)
if !response.success?
raise StandardError, "Error while fetching conversation report: #{response.status} '#{response.body}'"
raise StandardError, "Error while fetching conversation report: #{response.response_code} '#{response.body}'"
end
parse_response_body(response)