Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

improve errors #18

Open
oli-obk opened this issue Jul 4, 2016 · 0 comments
Open

improve errors #18

oli-obk opened this issue Jul 4, 2016 · 0 comments
Assignees

Comments

@oli-obk
Copy link

oli-obk commented Jul 4, 2016

Deserializing from a structure that doesn't contain a field that is required will cause the unhelpful error message about a unit being required at line 0, col 0.

While we can improve the UnitDeserializer, it would be best to first intercept the errors at https://github.com/serde-rs/xml/blob/master/src/de/mod.rs#L646 and enrich them with line and column info, because we might always run into a serde-reported error instead of a serde-xml-reported error.

Related PRs:

@oli-obk oli-obk self-assigned this Jul 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant