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

Add an option to fail parsing when encountering unknown Element IDs #126

Open
FreezyLemon opened this issue Apr 21, 2023 · 0 comments
Open

Comments

@FreezyLemon
Copy link
Contributor

As discussed in #117, there should be an option to fail parsing when encountering an Element with an unknown ID.

The behavior right now is to log a warning message, skip the Element and just move on.

One idea was a bool parameter in the public API (imagine a strict: bool param, or something similar) which would result in an error if true, and fails the parsing.

Alternatively, the logging could be changed to output an error instead of a warning, e.g. with the tracing crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants