Only log error on crypto waitReady (#355)
* Only log error on crypto waitReady * empty catch (already logged)
This commit is contained in:
@@ -21,13 +21,13 @@ export function cryptoWaitReady (): Promise<boolean> {
|
||||
.all([schnorrkelWaitReady()])
|
||||
.then(() => true)
|
||||
.catch((error) => {
|
||||
console.error('Unable to initialize @polkadot/util-crypto');
|
||||
console.error('Unable to initialize @polkadot/util-crypto', error);
|
||||
|
||||
throw error;
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
// start init process immediately
|
||||
cryptoWaitReady().catch(() => {
|
||||
// noop, logged above, can't do much more
|
||||
// shouldn't happen, logged above
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user