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

Check for non-nil error in FindTemplates #600

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

relvacode
Copy link
Contributor

Resolves #599

The fmt command now correctly handles the error without panicing

$ templ fmt "this path does not exist"
(✗)  [ error=lstat this path does not exist: no such file or directory ]
(✓) Format complete [ count=1 errors=1 duration=207.096µs ]

@a-h a-h merged commit 5381ed0 into a-h:main Mar 7, 2024
4 checks passed
@a-h
Copy link
Owner

a-h commented Mar 7, 2024

Thanks!

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.

Panic using fmt on filesystem path that does not exist
2 participants