GODRIVER-3005Needs Triage

Automatically add the full command error in error messages

Automatically include [mongo.CommandError.Raw|https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo#CommandError] in the error message formatted by [replaceErrors|https://github.com/mongodb/mongo-go-driver/blob/v1/mongo/errors.go#L49]. 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

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.