File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { defineAspects, Aspect } from './operation';
44import type { Server } from '../sdam/server' ;
55import { Collection } from '../collection' ;
66import type { CommandOperationOptions } from './command' ;
7- import { MongoDriverError , MongoServerError } from '../error' ;
7+ import { MongoError , MongoServerError } from '../error' ;
88import type { ClientSession } from '../sessions' ;
99import type { Document } from 'bson' ;
1010
@@ -52,7 +52,7 @@ export class RenameOperation extends RunAdminCommandOperation {
5252 try {
5353 newColl = new Collection ( coll . s . db , this . newName , coll . s . options ) ;
5454 } catch ( err ) {
55- return callback ( new MongoDriverError ( err ) ) ;
55+ return callback ( new MongoError ( err ) ) ;
5656 }
5757
5858 return callback ( undefined , newColl ) ;
You can’t perform that action at this time.
0 commit comments