Skip to content

Commit

Permalink
style(change-streams): fix typo in change stream error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rlondner authored and mbroadst committed Jan 8, 2018
1 parent fe9eeca commit 1fb74cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/change_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ var processNewChange = function(self, err, change, callback) {
// Cache the resume token if it is present. If it is not present return an error.
if (!change || !change._id) {
var noResumeTokenError = new Error(
'A change stream document has been recieved that lacks a resume token (_id).'
'A change stream document has been received that lacks a resume token (_id).'
);
if (typeof callback === 'function') return callback(noResumeTokenError, null);
if (self.listenerCount('error')) return self.emit('error', noResumeTokenError);
Expand Down

0 comments on commit 1fb74cd

Please sign in to comment.