Ensure that we capture sender even if thrown error is falsey
This commit is contained in:
parent
291e8d80cb
commit
28f96fe893
1 changed files with 5 additions and 0 deletions
|
@ -416,6 +416,11 @@ SecretSessionCipher.prototype = {
|
||||||
content: await _decryptWithUnidentifiedSenderMessage(content),
|
content: await _decryptWithUnidentifiedSenderMessage(content),
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
if (!error) {
|
||||||
|
// eslint-disable-next-line no-ex-assign
|
||||||
|
error = new Error('Decryption error was falsey!');
|
||||||
|
}
|
||||||
|
|
||||||
error.sender = address;
|
error.sender = address;
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue