-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GODRIVER-3425 Reference ObjectIdAsHexString decoder option in exception message. #1896
Conversation
API Change Report./v2/mongo/optionsincompatible changes(*ClientOptionsBuilder).SetDriverInfo: removed ./v2/x/mongo/driver/authincompatible changesHandshakeOptions.OuterLibraryName: removed ./v2/x/mongo/driver/operationincompatible changes(*Hello).OuterLibraryName: removed ./v2/x/mongo/driver/topologyincompatible changesWithOuterLibraryName: removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, with a suggestion. 👍
bson/string_codec.go
Outdated
msg := "decoding an object ID into a plain string is not supported " + | ||
"(set Decoder.ObjectIDAsHexString to enable decoding as a hexadecimal representation)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: Use a const
and slightly clearer wording.
msg := "decoding an object ID into a plain string is not supported " + | |
"(set Decoder.ObjectIDAsHexString to enable decoding as a hexadecimal representation)" | |
const msg = "decoding an object ID into a string is not supported by default" + | |
"(set Decoder.ObjectIDAsHexString to enable decoding as a hexadecimal string)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
GODRIVER-3425
Summary
Reference ObjectIdAsHexString decoder option in exception message.
Background & Motivation