diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9471f58b5..7f8b5ebc5 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -371,7 +371,14 @@ private hash = fn.incremental_hash(hasher) if supplied and not supplied.empty? - raise "#{type} mismatch\nExpected: #{supplied}\nGot: #{hash}\nArchive: #{fn}" unless supplied.upcase == hash.upcase + message = <<-EOF +#{type} mismatch +Expected: #{supplied} +Got: #{hash} +Archive: #{fn} +(To retry an incomplete download, remove the file above.) +EOF + raise message unless supplied.upcase == hash.upcase else opoo "Cannot verify package integrity" puts "The formula did not provide a download checksum" |
