You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: