From 9cd637ac20535392a8a9dd78861c4df297fe17ca Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 3 Sep 2018 15:40:07 +0100 Subject: [PATCH] formulary: NameError makes formulae unreadable. And `NoMethodError` is a type of `NameError`. --- Library/Homebrew/formulary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)