mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: more descriptive LTHash error
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user