Ensure that we capture sender even if thrown error is falsey

pull/272/head
Scott Nonnenberg 6 years ago
parent 291e8d80cb
commit 28f96fe893

@ -416,6 +416,11 @@ SecretSessionCipher.prototype = {
content: await _decryptWithUnidentifiedSenderMessage(content),
};
} catch (error) {
if (!error) {
// eslint-disable-next-line no-ex-assign
error = new Error('Decryption error was falsey!');
}
error.sender = address;
throw error;

Loading…
Cancel
Save