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

Include position in NotConsumedAll error #223

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

johnspade
Copy link
Contributor

Currently the error has a lastFailure parameter, but it is always set to None, and I couldn't think of a case where it could be filled. In case of previous errors, the parser should probably fail earlier.

I think it would be useful to add position information instead, to be able to show the location of the failure and the extra part of the input in the error message.

Closes #192

@johnspade johnspade marked this pull request as ready for review March 12, 2024 14:26
Copy link
Collaborator

@vigoo vigoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember the lastFailure had some meaning in the beginning but if it was always None now, no need to keep it.

@vigoo vigoo merged commit 639ebf6 into zio:master Mar 12, 2024
15 checks passed
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.

Syntax.end should report where it failed
2 participants