Issue #14296 has been updated by eric sorenson.

+1 this would really help
----------------------------------------
Feature #14296: Improve puppet template function error message.
https://projects.puppetlabs.com/issues/14296#change-62049

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.

Reply via email to