lib/dentaku/ast/function.rb in dentaku-2.0.6 vs lib/dentaku/ast/function.rb in dentaku-2.0.7

- old
+ new

@@ -10,10 +10,12 @@ def dependencies(context={}) @args.flat_map { |a| a.dependencies(context) } end def self.get(name) - registry.fetch(function_name(name)) { fail "Undefined function #{ name } "} + registry.fetch(function_name(name)) { + fail ParseError, "Undefined function #{ name }" + } end def self.register(name, type, implementation) function = Class.new(self) do def self.implementation=(impl)