[GODRIVER-3005] Automatically add the full command error in error messages Created: 05/Oct/23 Updated: 31/Oct/23 |
|
| Status: | Backlog |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Preston Vasquez | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Quarter: | FY24Q4 |
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
| Description |
|
Automatically include mongo.CommandError.Raw in the error message formatted by replaceErrors. For example, pymongo does the following:
Java also does this: https://github.com/mongodb/mongo-java-driver/blob/r4.0.2/driver-core/src/main/com/mongodb/MongoCommandException.java#L50-L51 |