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

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Preston Vasquez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: