Skip to content
Snippets Groups Projects
Unverified Commit 27b38884 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

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

formulary: catch argument errors.
parents bd5131d7 0990fbaa
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment