Improve invalid URI option error message

XMLWordPrintableJSON

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

      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
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: