From b9de7535ca319d4a3d3cd112a155729136c11acc Mon Sep 17 00:00:00 2001 From: Jacob Fink Date: Wed, 14 Jun 2023 15:50:01 -0400 Subject: [PATCH] improve error strings in crypto service --- libs/common/src/platform/services/crypto.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }