File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> {
556
556
}
557
557
558
558
if ( callback == null ) {
559
- throw new MongoDriverError ( 'Missing required callback parameter' ) ;
559
+ throw new MongoInvalidArgumentError ( 'Missing required callback parameter' ) ;
560
560
}
561
561
562
562
const session = this . startSession ( options ) ;
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ class ClientSession extends TypedEventEmitter<ClientSessionEvents> {
269
269
topologyMaxWireVersion != null &&
270
270
topologyMaxWireVersion < minWireVersionForShardedTransactions
271
271
) {
272
- throw new MongoDriverError (
272
+ throw new MongoCompatibilityError (
273
273
'Transactions are not supported on sharded clusters in MongoDB < 4.2.'
274
274
) ;
275
275
}
You can’t perform that action at this time.
0 commit comments