diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index abd035e5b0..de218bfe07 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -24,7 +24,7 @@ module Formulary const_set(namespace, mod) begin mod.module_eval(contents, path) - rescue NoMethodError, ArgumentError, ScriptError => e + rescue NameError, ArgumentError, ScriptError => e raise FormulaUnreadableError.new(name, e) end class_name = class_s(name)