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 #10

Open
Martoon-00 opened this issue Mar 12, 2022 · 0 comments
Open

Improve error messages #10

Martoon-00 opened this issue Mar 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Martoon-00
Copy link
Member

Clarification and motivation

I didn't care much about error messages till now, and there are multiple things that deserve attention:

  • In full interpolator, in some cases invalid syntax produces very weird errors;
  • The message when ? is supplied could be prettier;
  • The source locations reported by the parser could be not quoter-relative but global, see this section of our post on parser combinators;
  • When failing switch is supplied (examples: [int|S||], [int|?||]), the error message points not to the switch, but to the next character after the switch. And I found it tricky to resolve back then 🤔

Acceptance criteria

  • The mentioned error messages are fixed;
  • Other error scenarios are tried, the error messages are improved there too if necessary.
@Martoon-00 Martoon-00 added the bug Something isn't working label Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant