From fc9ea77bb3c5e7c3ce2852be181fadf1b49cd304 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 24 Oct 2009 15:55:53 +0100 Subject: [PATCH] Better md5 mismatch exception --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 4bc2cb7d72..4d88eadd83 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -275,7 +275,7 @@ private hash=Digest.const_get(type).hexdigest(fn.read) if supplied and not supplied.empty? - raise "#{type} mismatch: #{hash}" unless supplied.upcase == hash.upcase + raise "#{type} mismatch\nExpected: #{hash}\nArchive: #{fn}" unless supplied.upcase == hash.upcase else opoo "Cannot verify package integrity" puts "The formula did not provide a download checksum"