Skip to content

fix(template): fail fast on a file name that fails to render - #189

Merged
Ilyes512 merged 2 commits into
mainfrom
fix/GH-186-fail-fast-on-name-render-errors
Nov 24, 2026
Merged

Ilyes512 merged 2 commits into
mainfrom
fix/GH-186-fail-fast-on-name-render-errors

Conversation

@Ilyes512

Copy link
Copy Markdown
Member

Closes #186

Summary

  • File and directory names render with missingkey=error, so an undefined variable is an error instead of <no value>
  • A parse or execution error in a name aborts Execute, naming the source path under template/; with --continue-on-error the path (and a directory's subtree) is skipped with a RenderWarning
  • template validate reports name errors with exit bit 4; a name that renders empty is still skipped silently
  • Docs and README describe the behaviour; --continue-on-error is added to the specs use flags table

Decisions and skipped steps

Names render with missingkey=error. A parse or execution error in a name aborts Execute naming the source path, or with --continue-on-error skips the path and records a RenderWarning, which template validate reports with exit bit 4. A name that renders empty is still skipped silently.
@Ilyes512
Ilyes512 enabled auto-merge November 24, 2026 20:26
@Ilyes512
Ilyes512 merged commit 2b00809 into main Nov 24, 2026
8 checks passed
@Ilyes512
Ilyes512 deleted the fix/GH-186-fail-fast-on-name-render-errors branch November 24, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A file name that fails to render is dropped silently, and an undefined variable renders as <no value>

1 participant