HomePhorge

(#14296) Improve template function error message.
0efb4c254de3Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#14296) Improve template function error message.

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

Details

Provenance
Nan Liu <nan@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU94dee104ddb8: Merge branch '2.7rc' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Nan Liu <nan@puppetlabs.com> committed rPU0efb4c254de3: (#14296) Improve template function error message. (authored by Nan Liu <nan@puppetlabs.com>).May 3 2012, 4:38 PM