Merge pull request #4804 from MikeMcQuaid/formulary-nameerror

formulary: NameError makes formulae unreadable.
This commit is contained in:
Mike McQuaid 2018-09-03 16:25:41 +01:00 committed by GitHub
commit 0cae28f13c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)