api: fix formatting error when a request fails
This commit is contained in:
parent
3ed3b77e55
commit
da675bb47e
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class Helpscout::API
|
||||||
|
|
||||||
response = call_api(:get, 'reports/conversations?' + params.to_query)
|
response = call_api(:get, 'reports/conversations?' + params.to_query)
|
||||||
if !response.success?
|
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
|
end
|
||||||
|
|
||||||
parse_response_body(response)
|
parse_response_body(response)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue