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

More helpful error messages when deserializing #646

Closed
dev-ardi opened this issue Sep 14, 2023 · 1 comment
Closed

More helpful error messages when deserializing #646

dev-ardi opened this issue Sep 14, 2023 · 1 comment
Labels
duplicate enhancement serde Issues related to mapping from Rust types to XML

Comments

@dev-ardi
Copy link
Contributor

dev-ardi commented Sep 14, 2023

If serializing fails it currently outputs a very quiet message:

"missing field `@Foo`"

It would be nice to know the struct we're deserializing and the line number at least.

@Mingun Mingun added duplicate enhancement serde Issues related to mapping from Rust types to XML labels Sep 15, 2023
@Mingun
Copy link
Collaborator

Mingun commented Sep 15, 2023

This message comes from serde_derive and we have no control for it. Inclusion of line numbers in errors is tracked in #313, so closing as duplicate

@Mingun Mingun closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate enhancement serde Issues related to mapping from Rust types to XML
Projects
None yet
Development

No branches or pull requests

2 participants