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

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

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: