mirror of https://github.com/waku-org/js-waku.git
Log error when failing to encode Public Key Message
This commit is contained in:
parent
398f34b57f
commit
2f2eada322
|
@ -35,8 +35,8 @@ export default function BroadcastPublicKey({
|
|||
console.error('Failed to send Public Key Message', e);
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
console.log('Failed to encode Public Key Message in Waku Message');
|
||||
.catch((e) => {
|
||||
console.log('Failed to encode Public Key Message in Waku Message', e);
|
||||
});
|
||||
} else {
|
||||
createPublicKeyMessage(
|
||||
|
@ -55,9 +55,10 @@ export default function BroadcastPublicKey({
|
|||
console.error('Failed to send Public Key Message', e);
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((e) => {
|
||||
console.log(
|
||||
'Failed to encode Public Key Message in Waku Message'
|
||||
'Failed to encode Public Key Message in Waku Message',
|
||||
e
|
||||
);
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue