-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.0.0
-
Component/s: None
-
None
Currently, write exceptions thrown due to the write command's response indicating write concern or write errors will use "BulkWrite error" as their message. This should be improved to at least suggest that the user examine the attached WriteResult for more information. Alternatively, we can attempt to merge errors into a string or indicate if the cause was one or a mix of write and write concern errors.
Suggested format:
message = "BulkWrite error" foreach ( writeError ) { message .= " :: " .writeError.message }; foreach ( writeConcernError ) { message .= " :: " .writeError.message };