Skip to content

Conversation

@durran
Copy link
Member

@durran durran commented Apr 12, 2022

Description

Don't raise an error in the Response constructor.

What is changing?

Moves all logic that reads from the message body into the parse method to allow for any raised exception to be properly handled in a callback.

Is there new documentation needed for these changes?

No.

What is the motivation for this change?

NODE-3928

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@durran durran force-pushed the NODE-3928 branch 4 times, most recently from 43cc3aa to 7512a77 Compare April 12, 2022 17:49
@durran durran requested a review from baileympearson April 15, 2022 10:58
baileympearson
baileympearson previously approved these changes Apr 15, 2022
Copy link
Contributor

@baileympearson baileympearson left a comment

Choose a reason for hiding this comment

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

Thanks for adding the tests. Looks good!

@baileympearson baileympearson added the Team Review Needs review from team label Apr 15, 2022
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

LGTM!

@baileympearson baileympearson changed the title fix(NODE-3928): dont error in response constructor fix(NODE-3928): don't throw error in Response constructor Apr 20, 2022
@baileympearson baileympearson merged commit 441fc63 into main Apr 20, 2022
@baileympearson baileympearson deleted the NODE-3928 branch April 20, 2022 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team Review Needs review from team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants