aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index d4034564a..2b3305d20 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -405,6 +405,10 @@ class Formula
return klass.new(name) if install_type == :from_name
return klass.new(name, path.to_s)
+ rescue NoMethodError
+ # This is a programming error in an existing formula, and should not
+ # have a "no such formula" message.
+ raise
rescue LoadError, NameError
raise FormulaUnavailableError.new(name)
end