Log error when failing to encode Public Key Message

This commit is contained in:
Franck Royer 2021-08-26 15:23:36 +10:00
parent 398f34b57f
commit 2f2eada322
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 5 additions and 4 deletions

View File

@ -35,8 +35,8 @@ export default function BroadcastPublicKey({
console.error('Failed to send Public Key Message', e); console.error('Failed to send Public Key Message', e);
}); });
}) })
.catch(() => { .catch((e) => {
console.log('Failed to encode Public Key Message in Waku Message'); console.log('Failed to encode Public Key Message in Waku Message', e);
}); });
} else { } else {
createPublicKeyMessage( createPublicKeyMessage(
@ -55,9 +55,10 @@ export default function BroadcastPublicKey({
console.error('Failed to send Public Key Message', e); console.error('Failed to send Public Key Message', e);
}); });
}) })
.catch(() => { .catch((e) => {
console.log( console.log(
'Failed to encode Public Key Message in Waku Message' 'Failed to encode Public Key Message in Waku Message',
e
); );
}); });
}) })