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

improve errors #18

@oli-obk

Description

@oli-obk

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:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions