Merge pull request #4477 from MikeMcQuaid/formulary-argument-error-unreadable-formula

formulary: catch argument errors.
This commit is contained in:
Mike McQuaid 2018-07-15 17:44:21 +01:00 committed by GitHub
commit 27b3888409
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 ScriptError => e
rescue ArgumentError, ScriptError => e
raise FormulaUnreadableError.new(name, e)
end
class_name = class_s(name)