From 5b288eee85238d96d9cfb42f02db72c7b0c858c4 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 24 Oct 2009 15:55:53 +0100 Subject: 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 4bc2cb7d7..4d88eadd8 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" -- cgit v1.2.3