mirror of
https://github.com/gosticks/brew.git
synced 2026-10-05 15:06:54 +00:00
formulary: handle missing methods.
This makes formulae unreadable. See https://discourse.brew.sh/t/error-in-mpfr-2-formula/2575.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user