From 9076a4051b1fa229c862334b97202cf8d07bd46d Mon Sep 17 00:00:00 2001 From: Timothy Haley Date: Thu, 27 Aug 2020 14:05:11 -0400 Subject: [PATCH] Fix typo in error message thrown by unimplemented createIndex --- lib/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/collection.js b/lib/collection.js index 2f5d188b01..97f5bb3238 100644 --- a/lib/collection.js +++ b/lib/collection.js @@ -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'); }; /**