aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/formulary.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index b6ac6a98c..60479a875 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -56,6 +56,7 @@ class Formulary
begin
have_klass = Formulary.formula_class_defined? class_name
rescue NameError => e
+ raise unless e.name.to_s == class_name
raise FormulaUnavailableError, name, e.backtrace
end