From ba502f0436ac74fc3843594c4982aff0e5c29ba6 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sun, 7 Nov 2021 19:07:36 +0530 Subject: [PATCH] chore: more descriptive LTHash error --- src/Utils/chat-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/chat-utils.ts b/src/Utils/chat-utils.ts index 71ddbc1..8deb9aa 100644 --- a/src/Utils/chat-utils.ts +++ b/src/Utils/chat-utils.ts @@ -58,7 +58,7 @@ const computeLtHash = (initial: Uint8Array, macs: Mac[], getPrevSetValueMac: (in const subBuff = getPrevSetValueMac(indexMac, i) if(operation === proto.SyncdMutation.SyncdMutationSyncdOperation.REMOVE) { if(!subBuff) { - throw new Boom('') + throw new Boom('tried remove, but no buffer', { statusCode: 500 }) } } else { addBuffs.push(new Uint8Array(valueMac).buffer)