brew-mirror-check: fix error handling

This commit is contained in:
Jack Nagel 2013-02-18 18:12:14 -06:00
parent ada5033e0d
commit 3701081b65

View File

@ -12,13 +12,10 @@ class Formula
tarball_path = downloader.tarball_path
tarball_path.unlink if tarball_path.exist?
begin
fetched = downloader.fetch
rescue DownloadError => e
rescue StandardError
opoo "Failed to fetch from URL: #{url}"
return
end
else
verify_download_integrity fetched if fetched.kind_of? Pathname
end
end