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
  • Loading branch information
timhaley94 committed Aug 27, 2020
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
Expand Up @@ -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');
};

/**
Expand Down

0 comments on commit 9076a40

Please sign in to comment.