lib/paperweight/download.rb in paperweight-1.1.0 vs lib/paperweight/download.rb in paperweight-1.2.0

- old
+ new

@@ -4,9 +4,10 @@ # Most of this from https://gist.github.com/janko-m/7cd94b8b4dd113c2c193 class Download Error = Class.new(StandardError) DOWNLOAD_ERRORS = [ + Errno::ECONNREFUSED, # invalid url 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