Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1246

Improve BSON deserialization error messages

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      We've had various users reach out to us for help when they run into deserialization errors using our Serde integration. This is often because they end up with some sort of inconsistent data in their DB that cannot be deserialized to their defined type, and they don't understand or cannot diagnose the problem just from the error message.

      We should try to help them out by making the deserialization errors we have control over as descriptive as we can.

      For one set of candidates, all of the errors here could be updated such that if the incorrect BSON type is found, we report what we found instead.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: