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

improve error messages on parse errors #638

Merged
merged 2 commits into from Mar 24, 2024

Conversation

lovasoa
Copy link
Contributor

@lovasoa lovasoa commented Mar 24, 2024

I had an user report being unable to debug a template syntax error, because the error message just said "invalid handlebars syntax" without more details: lovasoa/SQLpage#275 (comment)

This changes syntax error messages to include the precise source of the syntax error

this also renames some grammar rules to make them easier to understand

see lovasoa/SQLpage#275 (comment)

error messages not specifying what the error is make it hard to debug the problem

this also renames some grammar rules to make them easier to understand
@coveralls
Copy link

coveralls commented Mar 24, 2024

Coverage Status

coverage: 81.504% (+0.01%) from 81.494%
when pulling 231a3f5 on lovasoa:better_error_messages
into dea0ed9 on sunng87:master.

@sunng87
Copy link
Owner

sunng87 commented Mar 24, 2024

LGTM. Thank you @lovasoa

@sunng87 sunng87 merged commit e1c9ec2 into sunng87:master Mar 24, 2024
9 checks passed
@lovasoa
Copy link
Contributor Author

lovasoa commented Mar 24, 2024

Great, thank you! Could you release a new version on crates.io ?

@sunng87
Copy link
Owner

sunng87 commented Mar 24, 2024

Sure. Just released it as 5.1.2

@lovasoa lovasoa deleted the better_error_messages branch March 25, 2024 08:03
@lovasoa
Copy link
Contributor Author

lovasoa commented Mar 25, 2024

Great, 5.1.2 will be in SQLPage's next version !

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.

None yet

3 participants