Skip to content

Errors should contain buffer positions #411

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

Closed
phillord opened this issue Jul 8, 2022 · 2 comments
Closed

Errors should contain buffer positions #411

phillord opened this issue Jul 8, 2022 · 2 comments

Comments

@phillord
Copy link

phillord commented Jul 8, 2022

Currently, quick-xml errors do not carry the buffer position. That works okay when parsing XML directly, but it harder when using using quick-xml inside another library, since any errors raised by quick-xml must be handled explicitly by code which has access to the reader rather than using ? and a From conversion.

If #109 were addressed, it would be nicer still to get a line/column locator!

@Mingun
Copy link
Collaborator

Mingun commented Jul 8, 2022

I close this as duplicate of #313, because the solution would be the same

@Mingun Mingun closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2022
@phillord
Copy link
Author

phillord commented Jul 8, 2022

No worries. I hadn't seen #313 and it is the same, although, obviously more specific than the general issue raised here.

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

No branches or pull requests

2 participants