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

Record syntax error instead of panicing when no block found #109

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

jlapeyre
Copy link
Collaborator

@jlapeyre jlapeyre commented Feb 6, 2024

Before this PR, if we expect a block, beginning with {, the parser panics. Now it logs an appropriate syntax error.

It could use better recovery. Because later errors are logged which essentially say the same thing. But analyzing the cases for recovery may take a bit of logic.

Closes #107

Before, if we expect a block, beginning with `{`, the parser panics.
Now it logs an appropriate syntax error.

It could use better recovery. Because later errors are logged which
essentially say the same thing. But analyzing the cases for recovery
my take a bit of logic.

Closes #107
@jlapeyre jlapeyre merged commit a62ad3b into main Feb 6, 2024
7 checks passed
@jlapeyre jlapeyre deleted the no-block-panic branch February 6, 2024 20:04
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.

Incorrect use of default causes panic
1 participant