We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e486fd0 commit 296036dCopy full SHA for 296036d
src/operations/rename.ts
@@ -4,7 +4,7 @@ import { defineAspects, Aspect } from './operation';
4
import type { Server } from '../sdam/server';
5
import { Collection } from '../collection';
6
import type { CommandOperationOptions } from './command';
7
-import { MongoDriverError, MongoServerError } from '../error';
+import { MongoError, MongoServerError } from '../error';
8
import type { ClientSession } from '../sessions';
9
import type { Document } from 'bson';
10
@@ -52,7 +52,7 @@ export class RenameOperation extends RunAdminCommandOperation {
52
try {
53
newColl = new Collection(coll.s.db, this.newName, coll.s.options);
54
} catch (err) {
55
- return callback(new MongoDriverError(err));
+ return callback(new MongoError(err));
56
}
57
58
return callback(undefined, newColl);
0 commit comments