instant-labs / instant-xml

11 stars 3 forks source link

Better error reporting #26

Closed rsdy closed 1 year ago

rsdy commented 1 year ago

This PR retrieves the span for every parsed attribute on a field or container.

This allows bubbling this information up to the call site and generating a specific error message instead of using a broader span or panic! macro.

Depends on #25 .

djc commented 1 year ago

Can you rebase on top of main?

djc commented 1 year ago

This is good. To bad Span::join() is not yet stable.