diff options
| author | Jack Nagel | 2014-12-31 11:13:45 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-12-31 17:28:21 -0500 | 
| commit | d9a69a40cd5c9980285ec9032bf711aacd90d313 (patch) | |
| tree | 7812be0cc50ec58badda7fe8805293b1af4dd62e | |
| parent | 6a9ee4efd10ada1d75c5c52d44f2c29f27a86123 (diff) | |
| download | homebrew-d9a69a40cd5c9980285ec9032bf711aacd90d313.tar.bz2 | |
Re-raise NameError when it doesn't match our constant
| -rw-r--r-- | Library/Homebrew/formulary.rb | 1 | 
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 | 
