Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1668

Improve error message when required field is empty

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.12.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Not Needed
    • 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?

      If a Database with an empty name is made, the first operation on that database will error with the Database field must be set on Operation. This error message comes from the driver.InvalidOperationError type (https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/operation.go#L49) and could be improved to something like "database name cannot be empty".

            Assignee:
            matt.dale@mongodb.com Matt Dale
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: