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);
|
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
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue