Skip to content

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

@davidovich

Description

@davidovich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions