Only log error on crypto waitReady (#355)

* Only log error on crypto waitReady

* empty catch (already logged)
This commit is contained in:
Jaco Greeff
2019-03-08 09:05:25 +01:00
committed by GitHub
parent a513619719
commit 302b70e97d
+3 -3
View File
@@ -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
});