Open jstranik opened 1 year ago
This would be great. Is there any other way to map an error back to the field that failed to parse?
For anyone else following along - you can match on Error::kind()
, and the Deserialize
variant's err
has a field()
function that will give you the field index...
Make the error messages to show also the field and value that failed to serialize.
Example of an error before the change:
The new improved error message is now displayed as:
Notice the field name and field value that caused problem during the import.