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

Better error messages for Rust

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Rust Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      User feedback from interviews:
      My application is a platform to help investors and traders make smarter decisions. You can think of it as an easy-to-use, UI-based algorithmic trading platform

      The better error messages are my primary source of concern. I've attached an example to this email. Within the Rust crate, the message is something like,

      "Error, missing field 'xyz' at line 1 column 75." 
      

      What would be better is if the error message specified the nested field that was missing. For example, if I had

      "field strategy.condition is missing the field `name`", 
      

      that would be a lot easier to debug

            Assignee:
            Unassigned Unassigned
            Reporter:
            rachelle.palmer@mongodb.com Rachelle Palmer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: