Skip to content
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

fix(NODE-3463): pass explain error through to callback #2949

Merged
merged 2 commits into from
Aug 25, 2021

Conversation

emadum
Copy link
Contributor

@emadum emadum commented Aug 24, 2021

No description provided.

@emadum emadum force-pushed the NODE-3463/3.7/fix-uncaught-explain-unified branch from d720c4b to 559f078 Compare August 24, 2021 18:16
if (explain) {
findCmd = decorateWithExplain(findCmd, explain);
try {
const explain = Explain.fromOptions(options);
Copy link
Contributor

Choose a reason for hiding this comment

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

NODE-3377
Totally expanding scope here but we're validating too strictly here, this could be a quick fix that goes in this PR, we just need to assert string or boolean.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not do that in this PR because while a "quick fix", it also should come with its own test, and probably merits its own line in bug fix release notes. I don't object to getting it into 3.7 as a follow up PR, but let's keep small things small.

@dariakp dariakp added the Team Review Needs review from team label Aug 25, 2021
@dariakp dariakp merged commit e5975af into 3.7 Aug 25, 2021
@dariakp dariakp deleted the NODE-3463/3.7/fix-uncaught-explain-unified branch August 25, 2021 14:55
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.

3 participants