We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96dff53 commit 26c9ccfCopy full SHA for 26c9ccf
src/operations/drop.ts
@@ -90,7 +90,8 @@ export async function dropCollections(
90
// the message as well here and below.
91
if (
92
!(err instanceof MongoServerError) ||
93
- (err.code !== MONGODB_ERROR_CODES.NamespaceNotFound && !/ns not found/.test(err.message))
+ (err.code !== MONGODB_ERROR_CODES.NamespaceNotFound &&
94
+ !/ns not found|ns does not exist/.test(err.message))
95
) {
96
throw err;
97
}
0 commit comments