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

Improve invalid URI option error message

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

      Right now, whenever a user specifies an invalid option, the driver emits the following error:

      ArgumentError { message: "invalid option warning" } }
      

      The message has a few issues:

      • It doesn't specify which option is invalid
      • It says "warning" even though it's an error and will prevent URI parsing.

      We should update the message to address the previous two points. As an added bonus, we could consider using a string similarity lookup on the list of valid options to suggest alternatives if a user made a typo, similar to how the Rust compiler tries to give suggestions for typos.

            Assignee:
            isabel.atkinson@mongodb.com Isabel Atkinson
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: