puppetlabs/puppet — pull request #738 by nanliu (2012-05-03 14:47:56+00:00)
Title: Ticket/2.7.x/14296

The current template function does not provide sufficient detail for
troubleshooting. This patch uses the backtrace to provide the fully
qualified filepath and line number.

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