Skip to content

Commit 3da208f

Browse files
throw runtime error
1 parent 23cafe9 commit 3da208f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/cmap/connection.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -868,11 +868,7 @@ export class CryptoConnection extends Connection {
868868
): Promise<Document> {
869869
const { autoEncrypter } = this;
870870
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-
});
871+
throw new MongoRuntimeError('No AutoEncrypter available for encryption');
876872
}
877873

878874
const serverWireVersion = maxWireVersion(this);

0 commit comments

Comments
 (0)