File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as WIRE_CONSTANTS from '../cmap/wire_protocol/constants';
3
3
import { TopologyType , ServerType } from './common' ;
4
4
import type { ObjectId , Document } from '../bson' ;
5
5
import type { SrvPollingEvent } from './srv_polling' ;
6
- import { MongoError , MongoCompatibilityError } from '../error' ;
6
+ import { MongoError , MongoDriverError } from '../error' ;
7
7
8
8
// constants related to compatibility checks
9
9
const MIN_SUPPORTED_SERVER_VERSION = WIRE_CONSTANTS . MIN_SUPPORTED_SERVER_VERSION ;
@@ -431,9 +431,8 @@ function updateRsWithPrimaryFromMember(
431
431
setName ?: string
432
432
) : TopologyType {
433
433
if ( setName == null ) {
434
- throw new MongoCompatibilityError (
435
- 'Argument "setName" is required if connected to a replica set'
436
- ) ;
434
+ // TODO(NODE-3483): should be an appropriate runtime error
435
+ throw new MongoDriverError ( 'Argument "setName" is required if connected to a replica set' ) ;
437
436
}
438
437
439
438
if (
You can’t perform that action at this time.
0 commit comments