Issue #14296 has been updated by Nan Liu. Status changed from Unreviewed to In Topic Branch Pending Review
https://github.com/puppetlabs/puppet/pull/738 Previous error message: Failed to parse template test/example.erb: undefined method `[]' for nil:NilClass at /tmp/module/test/manifests/init.pp:2 on node example New error message: Failed to parse template test/example.erb: Filepath: /tmp/module/test/templates/example.erb Line: 10 Detail: undefined method `[]' for nil:NilClass at /tmp/module/test/manifests/init.pp:2 on node example ---------------------------------------- Feature #14296: Improve puppet template function error message. https://projects.puppetlabs.com/issues/14296#change-61893 Author: Nan Liu Status: In Topic Branch Pending Review Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: Currently ERB template error does not generate easy to debug errors: Failed to parse template /tmp/example.erb: undefined method `[]' for nil:NilClass at /Users/nan/proj/tmp/invoke.pp:1 on node raiden.home.lan It would be helpful to provide file and line number that caused the erb template error, such as: debug: /tmp/example.erb:10:in `result' Failed to parse template /tmp/example.erb: undefined method `[]' for nil:NilClass at /Users/nan/proj/tmp/invoke.pp:1 on node raiden.home.lan -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
