|
@@ -228,7 +228,7 @@ module Docs
|
|
|
if response.success?
|
|
if response.success?
|
|
|
response.body
|
|
response.body
|
|
|
else
|
|
else
|
|
|
- reason = response.timed_out? ? "Timed out while fetching #{url}" : "Couldn't fetch #{url} (response code #{response.code})"
|
|
|
|
|
|
|
+ reason = response.timed_out? ? "Timed out while connecting to #{url}" : "Couldn't fetch #{url} (response code #{response.code})"
|
|
|
opts[:logger].error(reason)
|
|
opts[:logger].error(reason)
|
|
|
raise reason
|
|
raise reason
|
|
|
end
|
|
end
|