We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c85e439 commit 914100aCopy full SHA for 914100a
lib/docs/core/scrapers/url_scraper.rb
@@ -35,7 +35,11 @@ def request_options
35
36
def process_response?(response)
37
if response.error?
38
- raise "Error status code (#{response.code}): #{response.return_message}\n#{response.url}"
+ raise <<~ERROR
39
+ Error status code (#{response.code}): #{response.return_message}
40
+ #{response.url}
41
+ #{JSON.pretty_generate(response.headers).slice(2..-3)}
42
+ ERROR
43
elsif response.blank?
44
raise "Empty response body: #{response.url}"
45
end
0 commit comments