Details
-
Question
-
Resolution: Unresolved
-
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
Issue Links
- is related to
-
GODRIVER-2775 Remove the "replaceErrors" function
-
- Backlog
-
-
GODRIVER-2929 Improve error messaging by wrapping errors in Go Driver 1.x
-
- Backlog
-