diff options
| author | Jack Nagel | 2012-06-26 00:51:02 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-07-04 22:47:34 -0500 |
| commit | 96f396c9d461aa50049e0856e8f32667ad3a9c37 (patch) | |
| tree | 980e174b02248f722b4c3594c2210e176c1456f6 /Library/Homebrew/exceptions.rb | |
| parent | 078cfc51586bc834418a86c423ec419935c4d302 (diff) | |
| download | homebrew-96f396c9d461aa50049e0856e8f32667ad3a9c37.tar.bz2 | |
fetch: use new checksum verification
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 2b7f6542c..431d89dfd 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -158,15 +158,17 @@ class ChecksumMismatchError < RuntimeError attr :advice, true attr :expected attr :actual + attr :hash_type def initialize expected, actual @expected = expected @actual = actual + @hash_type = expected.hash_type.to_s.upcase super <<-EOS.undent - #{expected.hash_type.to_s.upcase} mismatch - Expected: #{expected} - Actual: #{actual} + #{@hash_type} mismatch + Expected: #{@expected} + Actual: #{@actual} EOS end |
