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