Skip to content
Snippets Groups Projects
Unverified Commit 9cd637ac authored by Mike McQuaid's avatar Mike McQuaid
Browse files

formulary: NameError makes formulae unreadable.

And `NoMethodError` is a type of `NameError`.
parent 3b91c5f1
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 NoMethodError, ArgumentError, ScriptError => e
rescue NameError, 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