lib/paperweight/download.rb in paperweight-1.2.0 vs lib/paperweight/download.rb in paperweight-1.2.1
- old
+ new
@@ -5,9 +5,10 @@
class Download
Error = Class.new(StandardError)
DOWNLOAD_ERRORS = [
Errno::ECONNREFUSED, # invalid url
+ Errno::EADDRNOTAVAIL, # cannot connect
SocketError, # domain not found
OpenURI::HTTPError, # response status 4xx or 5xx
RuntimeError, # redirection errors (e.g. redirection loop)
URI::InvalidURIError, # invalid URL
Error # our errors