aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-12-31 11:13:45 -0500
committerJack Nagel2014-12-31 17:28:21 -0500
commit648c47e85d74805c18ce94412397a32c183f2cae (patch)
tree72b194c64867ea0273c9201239ad29e36d3c39cd /Library
parent5bf92cd7ca76a4996941f9dc80a251dad2a22d86 (diff)
downloadbrew-648c47e85d74805c18ce94412397a32c183f2cae.tar.bz2
Re-raise NameError when it doesn't match our constant
Diffstat (limited to 'Library')
-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