Merge pull request #4477 from MikeMcQuaid/formulary-argument-error-unreadable-formula
formulary: catch argument errors.
This commit is contained in:
		
						commit
						27b3888409
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user