Skip to content

Commit 7e1d0a6

Browse files
committed
Minor cleanup
1 parent 9a77555 commit 7e1d0a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schemaregistry/rules/encryption/encrypt-executor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ export class KmsClientWrapper implements KmsClient {
682682
}
683683
}
684684
}
685-
throw new RuleError('failed to encrypt key with all KMS keys')
685+
throw new RuleError('no KEK found for encryption')
686686
}
687687

688688
async decrypt(encryptedKey: Buffer): Promise<Buffer> {
@@ -696,7 +696,7 @@ export class KmsClientWrapper implements KmsClient {
696696
}
697697
}
698698
}
699-
throw new RuleError('failed to decrypt key with all KMS keys')
699+
throw new RuleError('no KEK found for decryption')
700700
}
701701
}
702702

0 commit comments

Comments
 (0)