Unified · Split
| @@ -228,7 +228,7 @@ module Docs · 227 unmodified lines | |||
| 228 | if response.success? | 228 | if response.success? |
| 229 | response.body | 229 | response.body |
| 230 | else | 230 | else |
| 231 | reason = response.timed_out? ? "Timed out while fetching #{url}" : "Couldn't fetch #{url} (response code #{response.code})" | 231 | reason = response.timed_out? ? "Timed out while connecting to #{url}" : "Couldn't fetch #{url} (response code #{response.code})" |
| 232 | opts[:logger].error(reason) | 232 | opts[:logger].error(reason) |
| 233 | raise reason | 233 | raise reason |
| 234 | end | 234 | end |