You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If I reference an undeclared variable in my template, the error message is like template 'example.filef' uses variables with undefined value on line 36 (line number is based on the rendered output and might not be accurate).
The line number is partially helpful, since it is only roughly in that line in the source file.
Describe the solution you'd like
In many cases it would help me if the variable that is missing would be mentioned.
For example the error message could look like template 'example.filef' uses variable '.Inventory.foo.bar' with undefined value on line 36 (line number is based on the rendered output and might not be accurate)
The text was updated successfully, but these errors were encountered:
I absolutely feel your pain, but this might be a tricky one.
The way it is currently handled is that the template package will replace any undefined variable with <no value>.
The undefined value detection leverages that behaviour to detect that there is some undefined variable, but not which one.
I'll try to figure out a viable solution for this 😃
Is your feature request related to a problem? Please describe.
If I reference an undeclared variable in my template, the error message is like
template 'example.filef' uses variables with undefined value on line 36 (line number is based on the rendered output and might not be accurate)
.The line number is partially helpful, since it is only roughly in that line in the source file.
Describe the solution you'd like
In many cases it would help me if the variable that is missing would be mentioned.
For example the error message could look like
template 'example.filef' uses variable '.Inventory.foo.bar' with undefined value on line 36 (line number is based on the rendered output and might not be accurate)
The text was updated successfully, but these errors were encountered: