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

Improve deserialization error messages

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-0.15.0
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      (tracking ticket for https://github.com/mongodb/bson-rust/issues/84)

      Currently, when a deserialization error occurs, the error returned by the BSON library identifies the type that was unable to be deserialized, but not the name of the field. This can be ambiguous if there are multiple fields of the same type that are being deserialized. We should investigate how we can improve these error messages, potentially by adding the name of the field and the value that was unable to be deserialized.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: