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

Improve error message when required field is empty

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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".

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            divjot.arora Divjot Arora
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: