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

Improve error messages for assertToken #117

Open
juliaogris opened this issue Jan 20, 2025 · 0 comments
Open

Improve error messages for assertToken #117

juliaogris opened this issue Jan 20, 2025 · 0 comments

Comments

@juliaogris
Copy link
Member

assertToken, assertEOL have confusing error messages.
Rework globally.

Consider adding more structured error messages (markdown? fix-suggestion?).

print ("hello" "world")

error:

expected ")", got ""
expected end of line, found "world"

This should be,

  1. A single error, not two.
  2. Read
    invalid `"world"`, did you mean `)` or operator?
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant