diff options
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 341bdb765..49b071a0a 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -42,6 +42,9 @@ class HttpDownloadStrategy <AbstractDownloadStrategy puts "File already downloaded and cached" end return @dl # thus performs checksum verification + rescue Exception + @dl.unlink + raise "There was an error downloading the file:\n#{@url}" end def stage case `file -b #{@dl}` |
