diff options
| author | Jack Nagel | 2014-02-18 13:27:35 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-18 13:27:35 -0500 |
| commit | 76c55c481064af531f0d9e0a172516b6f6ab1980 (patch) | |
| tree | a1eb30ab7716b322065e0b39a946da1b931c541f /Library/Homebrew/extend/pathname.rb | |
| parent | 0a633cfad3e9d3c7a7a29561cf8a6f0aba3a637e (diff) | |
| download | homebrew-76c55c481064af531f0d9e0a172516b6f6ab1980.tar.bz2 | |
Inline static exception text to remove a rescue
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index f2222d37f..9e1e809db 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -237,7 +237,7 @@ class Pathname def verify_checksum expected raise ChecksumMissingError if expected.nil? or expected.empty? actual = Checksum.new(expected.hash_type, send(expected.hash_type).downcase) - raise ChecksumMismatchError.new(expected, actual) unless expected == actual + raise ChecksumMismatchError.new(self, expected, actual) unless expected == actual end if '1.9' <= RUBY_VERSION |
