Skip to content

Conversation

@nullswan
Copy link
Contributor

Original example goes log.Fatal if your query return something different than "ErrNoDocuments" but, we want to go Fatal if you have an error which is unhandled.
Otherwise, we can never process query result after error check.

@kevinAlbs kevinAlbs self-requested a review April 22, 2021 16:02
Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

Thank you for the catch and contribution @c3b5aw!

@kevinAlbs kevinAlbs changed the title fix README Missconception FindOne fix README error handling of FindOne Apr 22, 2021
@nullswan
Copy link
Contributor Author

Rewrote block as excepted and added one space where it was missing in upper block so every examples fit 4 spaces indent.

@nullswan nullswan requested a review from kevinAlbs April 25, 2021 20:40
@kevinAlbs kevinAlbs requested review from iwysiu and matthewdale May 4, 2021 16:04
Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you again for the contribution @c3b5aw!

Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

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

👍

@kevinAlbs kevinAlbs merged commit e0f4b3c into mongodb:master May 4, 2021
faem pushed a commit to kubedb/mongo-go-driver that referenced this pull request Mar 17, 2022
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