Issue #19983 has been updated by eric sorenson.
It looks like any Puppet.Error raised from a manifest shows the problem. Simple case: <pre> [email protected] ~/Sandbox]% cat 19983-no-filename.pp # no filename in error with `puppet apply --parser future` file { '/tmp/19983.out': content => template('foobar/blah.erb') } [[email protected] ~/Sandbox]% puppet apply 19983-no-filename.pp Error: Could not find template 'foobar/blah.erb' at /Users/eric/Sandbox/19983-no-filename.pp:4 on node glitch.local Error: Could not find template 'foobar/blah.erb' at /Users/eric/Sandbox/19983-no-filename.pp:4 on node glitch.local [[email protected] ~/Sandbox]% puppet apply --parser future 19983-no-filename.pp Error: Could not find template 'foobar/blah.erb' at line 4 on node glitch.local Error: Could not find template 'foobar/blah.erb' at line 4 on node glitch.local </pre> ---------------------------------------- Bug #19983: egrammar parser loses filename in error messages https://projects.puppetlabs.com/issues/19983#change-87865 * Author: eric sorenson * Status: Investigating * Priority: Normal * Assignee: Henrik Lindberg * Category: * Target version: 3.2.0 * Affected Puppet version: * Keywords: egrammar * Branch: ---------------------------------------- Using the egrammar parser, some classes of errors are missing the filename which encountered the error, making things more difficult to debug. <b>New:</b> <pre> [vagrant@glitched ~]$ sudo puppet agent -tv --server glitched.local err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find template '' at line 103 on node glitched.local warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run </pre> <b>Old:</b> <pre> [vagrant@glitched ~]$ sudo puppet agent -tv --server glitched.local err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find template '' at /Sandbox/fosdem/puppet/modules/apache/manifests/vhost.pp:103 on node glitched.local </pre> -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
