From cab0090048cc0caae1d73a74778f82dcd8ee4b2e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 15 Jul 2018 19:29:31 +0100 Subject: [PATCH] formulary: handle missing methods. This makes formulae unreadable. See https://discourse.brew.sh/t/error-in-mpfr-2-formula/2575. --- 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 46bd825e2a..17dbd6f9a5 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 ArgumentError, ScriptError => e + rescue NoMethodError, ArgumentError, ScriptError => e raise FormulaUnreadableError.new(name, e) end class_name = class_s(name)