We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfc8f38 commit 2a61dd6Copy full SHA for 2a61dd6
src/client-side-encryption/auto_encrypter.ts
@@ -365,19 +365,10 @@ export class AutoEncrypter {
365
const client = await this._mongocryptdClient.connect();
366
return client;
367
} catch (error) {
368
- const { message } = error;
369
- if (
370
- message &&
371
- (message.match(/timed out after/) ||
372
- message.match(/ENOTFOUND/) ||
373
- message.match(/ECONNREFUSED/))
374
- ) {
375
- throw new MongoRuntimeError(
376
- 'Unable to connect to `mongocryptd`, please make sure it is running or in your PATH for auto-spawn',
377
- { cause: error }
378
- );
379
- }
380
- throw error;
+ throw new MongoRuntimeError(
+ 'Unable to connect to `mongocryptd`, please make sure it is running or in your PATH for auto-spawn',
+ { cause: error }
+ );
381
}
382
383
0 commit comments