-
Notifications
You must be signed in to change notification settings - Fork 911
GODRIVER-2325 Expose raw server response in relevant errors #871
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
Conversation
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.
Thank you for the thorough tests. I suggest removing the RawResponses
method from the ServerError
interface. Apologies for contradictory ideas.
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 👍
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.
LGTM. Nicely done!
@WenbinZhu can you review to validate this solves the intended use case?
Co-authored-by: Kevin Albertson <[email protected]>
Co-authored-by: Kevin Albertson <[email protected]>
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.
Thanks for the change, LGTM! (Really sorry for the delay, my email notification setting routes all emails from non 10gen repos to my personal mailbox and I overlooked the review request email...)
No worries @WenbinZhu ! Thanks for taking a look. |
GODRIVER-2325
Adds
Raw
fields to variousmongo
anddriver
errors. Adds integration tests to ensure the raw server reply can be accessed through these fields.