Skip to content

Commit

Permalink
Fix typo in error message thrown by unimplemented createIndex
Browse files Browse the repository at this point in the history
timhaley94 committed Aug 27, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 54cae55 commit 9076a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/collection.js
Original file line number Diff line number Diff line change
@@ -143,7 +143,7 @@ Collection.prototype.ensureIndex = function() {
*/

Collection.prototype.createIndex = function() {
throw new Error('Collection#ensureIndex unimplemented by driver');
throw new Error('Collection#createIndex unimplemented by driver');
};

/**

0 comments on commit 9076a40

Please sign in to comment.