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(change_stream): do not check isGetMore if error[mongoErrorContextSymbol] is undefined #1720

Merged
merged 2 commits into from
Jun 6, 2018

Conversation

kvwalker
Copy link
Contributor

@kvwalker kvwalker commented Jun 5, 2018

Fixes NODE-1494

Copy link
Contributor

@daprahamian daprahamian left a comment

Choose a reason for hiding this comment

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

LGTM, with a minor change:

lib/error.js Outdated
);
}

module.exports = { GET_MORE_NON_RESUMABLE_CODES, isGetMoreError, isResumableError };
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we actually use isGetMoreError outside of isResumableError? If not, we should not export it.

@kvwalker kvwalker merged commit 844c2c8 into mongodb:master Jun 6, 2018
mbroadst pushed a commit that referenced this pull request Jun 18, 2018
kiku-jw pushed a commit to kiku-jw/node-mongodb-native that referenced this pull request Feb 11, 2019
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.

3 participants