vendored/puppet/lib/puppet/parser/functions.rb in bolt-0.15.0 vs vendored/puppet/lib/puppet/parser/functions.rb in bolt-0.16.0

- old
+ new

@@ -150,10 +150,10 @@ arity = options[:arity] || -1 ftype = options[:type] || :statement unless ftype == :statement or ftype == :rvalue - raise Puppet::DevError, "Invalid statement type #{ftype.inspect}" + raise Puppet::DevError, _("Invalid statement type %{type}") % { type: ftype.inspect } end # the block must be installed as a method because it may use "return", # which is not allowed from procs. real_fname = "real_function_#{name}"