Skip to content

Improve parser error messages to include line and column numbers#801

Merged
byroot merged 2 commits into
ruby:masterfrom
casperisfine:improve-parsing-error
May 12, 2025
Merged

Improve parser error messages to include line and column numbers#801
byroot merged 2 commits into
ruby:masterfrom
casperisfine:improve-parsing-error

Conversation

@casperisfine
Copy link
Copy Markdown

The title says it all.

The line and column are also accessible as attributes on the exception object.

NB: this is only for the C version. The Java version would require quite a big refactor and I don't have the time or energy for it.

@casperisfine casperisfine force-pushed the improve-parsing-error branch from ba05d5b to 30e35b9 Compare May 12, 2025 12:25
@byroot byroot merged commit 2cbd5b6 into ruby:master May 12, 2025
33 of 34 checks passed
@casperisfine casperisfine deleted the improve-parsing-error branch May 12, 2025 12:31
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.

2 participants