More useful var templating errors #80333
Labels
affects_2.15
data_tagging
feature
This issue/PR relates to a feature request.
module
This issue/PR relates to a module.
Summary
When a templated var fails due to error in template, the error message is unhelpful and hard to read. It consists of:
An unhandled exception occured while templating
Error was a class 'ansible.errors.AnsibleError'>, original message: template error while templating string: expected an expression, got 'end of statement block. String:
No indication where in the template (row, column) the error has occured. Also it is hard hard to find the actual template error between two redundant printings of the same template.
The feature request is: show the actual template error text, then info on location of the error, and only then a single printing of the template, maybe with the error position marked as it is with yaml errors.
Issue Type
Feature Idea
Component Name
template
Additional Information
Current error message:
Suggested:
Code of Conduct
The text was updated successfully, but these errors were encountered: