File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { Callback } from '../utils';
3
3
import type { Server } from '../sdam/server' ;
4
4
import type { Db } from '../db' ;
5
5
import type { ClientSession } from '../sessions' ;
6
- import { MongoDriverError , MongoInvalidArgumentError } from '../error' ;
6
+ import { MongoDriverError } from '../error' ;
7
7
8
8
/** @public */
9
9
export type ProfilingLevelOptions = CommandOperationOptions ;
@@ -24,10 +24,10 @@ export class ProfilingLevelOperation extends CommandOperation<string> {
24
24
if ( was === 0 ) return callback ( undefined , 'off' ) ;
25
25
if ( was === 1 ) return callback ( undefined , 'slow_only' ) ;
26
26
if ( was === 2 ) return callback ( undefined , 'all' ) ;
27
- // TODO(NODE-3483): Add MongoCommandOperationError here
27
+ // TODO(NODE-3483)
28
28
return callback ( new MongoDriverError ( `Illegal profiling level value ${ was } ` ) ) ;
29
29
} else {
30
- // TODO(NODE-3483): Add MongoCommandOperationError
30
+ // TODO(NODE-3483): Consider MongoUnexpectedServerResponseError
31
31
err != null ? callback ( err ) : callback ( new MongoDriverError ( 'Error with profile command' ) ) ;
32
32
}
33
33
} ) ;
You can’t perform that action at this time.
0 commit comments