aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-12-31 11:13:45 -0500
committerJack Nagel2014-12-31 17:28:21 -0500
commit6cb7a3345f32e629182aea6397ab3862c0561eb5 (patch)
treef15468f18d0ec5faed82fdab4ac7a64f6a4931c1
parente2b94f46b9bbc071afbeba089c6c0b72216377d7 (diff)
downloadhomebrew-6cb7a3345f32e629182aea6397ab3862c0561eb5.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.
-rw-r--r--Library/Homebrew/formulary.rb6
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