diff --git a/libs/common/src/platform/services/crypto.service.ts b/libs/common/src/platform/services/crypto.service.ts index dae4a195881..f9b555c10a8 100644 --- a/libs/common/src/platform/services/crypto.service.ts +++ b/libs/common/src/platform/services/crypto.service.ts @@ -166,7 +166,7 @@ export class CryptoService implements CryptoServiceAbstraction { ): Promise { masterKey ||= await this.getMasterKey(); if (masterKey == null) { - throw new Error("No Master Key found."); + throw new Error("No master key found."); } if (!userSymKey) { @@ -174,7 +174,7 @@ export class CryptoService implements CryptoServiceAbstraction { userId: userId, }); if (userSymKeyMasterKey == null) { - throw new Error("No User Key found."); + throw new Error("No encrypted user key found."); } userSymKey = new EncString(userSymKeyMasterKey); }