formulary: NameError makes formulae unreadable.
And `NoMethodError` is a type of `NameError`.
This commit is contained in:
		
							parent
							
								
									3b91c5f1ae
								
							
						
					
					
						commit
						9cd637ac20
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user