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

Allow error messages from string notation parsers #20042

Open
gmalecha opened this issue Jan 13, 2025 · 0 comments
Open

Allow error messages from string notation parsers #20042

gmalecha opened this issue Jan 13, 2025 · 0 comments
Labels
kind: wish Feature or enhancement requests. needs: triage The validity of this issue needs to be checked, or the issue itself updated.

Comments

@gmalecha
Copy link
Contributor

gmalecha commented Jan 13, 2025

Is your feature request related to a problem?

As String Notation functions get more complex, it can be useful to report parsing errors. For example, in our code, I would like to add a bit of logic to check that the actual name being parsed is a name that exists in some table. Failing the parsing without providing an error makes it difficult to find this sort of thing.

Proposed solution

Additionally support return types of, Pstring + T (where Pstring is the type that is parsed from). If parsing fails (with inl err), then print the error message when parsing fails.

Alternative solutions

No response

Additional context

No response

@gmalecha gmalecha added kind: wish Feature or enhancement requests. needs: triage The validity of this issue needs to be checked, or the issue itself updated. labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: wish Feature or enhancement requests. needs: triage The validity of this issue needs to be checked, or the issue itself updated.
Projects
None yet
Development

No branches or pull requests

1 participant