Skip to content

report invalid global expressions clearly#662

Open
crazy-max wants to merge 2 commits into
docker:masterfrom
crazy-max:validate-global-exp
Open

report invalid global expressions clearly#662
crazy-max wants to merge 2 commits into
docker:masterfrom
crazy-max:validate-global-exp

Conversation

@crazy-max
Copy link
Copy Markdown
Member

fixes #545

Handlebars silently renders missing helpers as empty strings, which made configuration mistakes look like boolean parsing failures. Validating the expression name at the rendering boundary preserves existing behavior for documented expressions while producing a more useful error for unsupported ones.

The global expression map in setGlobalExp now doubles as the allowed expression list, and the parsed Handlebars template is checked inline before compilation.

crazy-max added 2 commits May 22, 2026 14:41
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max requested a review from tonistiigi May 22, 2026 12:46
@crazy-max crazy-max marked this pull request as ready for review May 22, 2026 12:46
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.

Improve error message for invalid global expression

1 participant