Skip to content

fix(change_stream): do not check isGetMore if error[mongoErrorContextSymbol] is undefined - #1720

Merged
kvwalker merged 2 commits into
mongodb:masterfrom
kvwalker:NODE-1494
Jun 6, 2018
Merged

fix(change_stream): do not check isGetMore if error[mongoErrorContextSymbol] is undefined#1720
kvwalker merged 2 commits into
mongodb:masterfrom
kvwalker:NODE-1494

Conversation

@kvwalker

@kvwalker kvwalker commented Jun 5, 2018

Copy link
Copy Markdown
Contributor

Fixes NODE-1494

@kvwalker
kvwalker requested review from daprahamian and mbroadst June 5, 2018 19:35

@daprahamian daprahamian left a comment

Copy link
Copy Markdown
Contributor

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:

Comment thread lib/error.js Outdated
);
}

module.exports = { GET_MORE_NON_RESUMABLE_CODES, isGetMoreError, isResumableError };

Copy link
Copy Markdown
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
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