From 648c47e85d74805c18ce94412397a32c183f2cae Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 31 Dec 2014 11:13:45 -0500 Subject: Re-raise NameError when it doesn't match our constant --- Library/Homebrew/formulary.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') 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 -- cgit v1.2.3