neon-serde icon indicating copy to clipboard operation
neon-serde copied to clipboard

Provide more information on deserialization Errors

Open sebasmagri opened this issue 7 years ago • 0 comments

We're constantly getting errors from from_value like this one:

Error: internal error in native module: Failed to process input campaigns chunk: Err
or(Msg("invalid type: unit value, expected a string"), State { next_error: None, backtrace: None })

As we're processing and trying to deserialize quite big JSON objects, it's pretty hard to find which value got an unit value (null) instead of a String.

It'd be nice to have neon-serde providing more information of, at least, the key/property that failed to be deserialized.

sebasmagri avatar Apr 12 '18 23:04 sebasmagri