Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid template causes templatecheck to panic #5

Open
wttw opened this issue Feb 9, 2024 · 0 comments
Open

Invalid template causes templatecheck to panic #5

wttw opened this issue Feb 9, 2024 · 0 comments
Assignees

Comments

@wttw
Copy link

wttw commented Feb 9, 2024

When running templatecheck v0.7.0 with the attached sample it panics, after dereferencing a nil reflect.Type in indirectType().

The template has a bug, it doesn't pass a parameter into the subtemplate "cross", so I'd expect an error response.

main.go.txt

(This found several bugs in a set of templates I've been using in production for weeks, which I wouldn't have found without it. Definitely a useful library.)

@jba jba self-assigned this Feb 9, 2024
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

No branches or pull requests

2 participants