Skip to content

GODRIVER-1627 Export keys slice from bsoncodec.DecodeError #421

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

Merged
merged 1 commit into from
Jun 11, 2020

Conversation

divjotarora
Copy link
Contributor

Talked to @craigwilson offline and we agreed that the struct field
information is never necessary because users have to specify a
struct tag if the struct field name doesn't match the BSON key
name, so I removed that from the error message completely.

With that change made, the only change needed to support the feature
request in the ticket is to export a Keys function from DecodeError.

Copy link

@danieler15 danieler15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from an ADL perspective

@jyemin jyemin removed their request for review June 11, 2020 18:30
@divjotarora divjotarora merged commit 324f6a9 into mongodb:master Jun 11, 2020
@divjotarora divjotarora deleted the godriver-1627-bson-errors branch June 11, 2020 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants