davidovich / summon

Summon: your data on caffeine
Apache License 2.0
12 stars 0 forks source link

feature: add correct line number reporting when template rendering fails #78

Open davidovich opened 2 years ago

davidovich commented 2 years ago

Templates are one liners, so when a failure occurs, it displays line 1 with offset which are relative to the template text. We have the line numbers in the yaml.Node parser, so we can record the positions to add actual line offsets to rectify the error message.