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

Provide a way for users to format their own error messages #633

Open
agladysh opened this issue Apr 5, 2023 · 0 comments
Open

Provide a way for users to format their own error messages #633

agladysh opened this issue Apr 5, 2023 · 0 comments

Comments

@agladysh
Copy link

agladysh commented Apr 5, 2023

Current implementation produces error message of hundreds of lines for larger grammars.

Ideally as a nearley user I would be able to format the error message myself from the data on the Error object.

One option to do that could be to add all necessary data as fields on the Error object, and add .toString() to it, formatting the error message as it is done now.

@agladysh agladysh changed the title Provide a way to let users to format their own error messages Provide a way for users to format their own error messages Apr 5, 2023
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

No branches or pull requests

1 participant