diff --git a/app/utils/aws.ts b/app/utils/aws.ts index 2f65e81d6..e0b8e479f 100644 --- a/app/utils/aws.ts +++ b/app/utils/aws.ts @@ -42,19 +42,16 @@ export function encrypt(data: string, encryptionKey: string): string { export function decrypt(encryptedData: string, encryptionKey: string): string { if (!encryptedData) return ""; if (!encryptionKey) { - console.error("[AWS Decryption Error] Encryption key is required"); throw new Error("Encryption key is required for AWS credential decryption"); } try { const bytes = AES.decrypt(encryptedData, encryptionKey); const decrypted = bytes.toString(enc.Utf8); if (!decrypted && encryptedData) { - console.error("[AWS Decryption Error] Failed to decrypt data"); throw new Error("Failed to decrypt AWS credentials"); } return decrypted; } catch (error) { - console.error("[AWS Decryption Error]:", error); throw new Error("Failed to decrypt AWS credentials"); } }