diff options
| author | Jack Nagel | 2014-12-31 11:13:45 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-31 17:28:21 -0500 |
| commit | 2cb160dc460c4e44d1b92bf55922b45533bdaef4 (patch) | |
| tree | 8c0ba64c6ce90ff96bffb247577605e1e9b9c915 /Library | |
| parent | 86ec8fcff320f33d04c6c9dd4b97490bce04b41f (diff) | |
| download | brew-2cb160dc460c4e44d1b92bf55922b45533bdaef4.tar.bz2 | |
Stop rescuing NameError
This clause originated in 4a36c56ac7b36904712aa472b9bd50ef1b0c80d3,
attempting to catch NameErrors raised by const_defined? calls earlier in
the method body. Those const_defined? calls have since been moved out of
the body of the begin block.
Stop rescuing NameError here, which will make true programming errors in
formulae easier to debug.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 2af67644f..37ca80b90 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -74,11 +74,7 @@ class Formulary STDERR.puts "#{$0} (#{self.class.name}): loading #{path}" if ARGV.debug? begin require(path) - rescue NoMethodError - # This is a programming error in an existing formula, and should not - # have a "no such formula" message. - raise - rescue LoadError, NameError => e + rescue LoadError => e raise FormulaUnavailableError, name, e.backtrace end end |
