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

Should we account for driver.WriteCommandError in mongo.replaceErrors ?

    • Type: Icon: Question Question
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      It is possible to have a driver.WriteCommandError returned when running Database.CreateCollection , and perhaps other operations. For many write operations, we rely on the mongo package function "processWriteError" to convert the driver.WriteCommandError into a mongo.WriteException. Should we make this logic more general by integrating "processWriteError" into "replaceErrors"?

            Assignee:
            Unassigned Unassigned
            Reporter:
            preston.vasquez@mongodb.com Preston Vasquez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: