We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23cafe9 commit 3da208fCopy full SHA for 3da208f
1 file changed
src/cmap/connection.ts
@@ -868,11 +868,7 @@ export class CryptoConnection extends Connection {
868
): Promise<Document> {
869
const { autoEncrypter } = this;
870
if (!autoEncrypter) {
871
- // TODO(NODE-6065): throw a MongoRuntimeError in Node V7
872
- // @ts-expect-error No cause provided because there is no underlying error.
873
- throw new MongoMissingDependencyError('No AutoEncrypter available for encryption', {
874
- dependencyName: 'n/a'
875
- });
+ throw new MongoRuntimeError('No AutoEncrypter available for encryption');
876
}
877
878
const serverWireVersion = maxWireVersion(this);
0 commit comments