Fix error logging (#14)
This commit is contained in:
+1
-1
@@ -22,6 +22,6 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.4.0",
|
||||
"@polkadot/dev": "^0.28.1",
|
||||
"@polkadot/util": "^0.41.1"
|
||||
"@polkadot/util": "^0.76.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ module.exports = async function createExportPromise () {
|
||||
};
|
||||
|
||||
if (!WebAssembly) {
|
||||
console.error(`ERROR: Unable to initialize ${pkg.name}, WebAssembly is not available in this environment`);
|
||||
console.error(\`ERROR: Unable to initialize \${pkg.name}, WebAssembly is not available in this environment\`);
|
||||
|
||||
// TODO: Return asm version when not detected
|
||||
return null;
|
||||
@@ -90,7 +90,7 @@ module.exports = async function createExportPromise () {
|
||||
|
||||
return instance.exports;
|
||||
} catch (error) {
|
||||
console.error(`ERROR: Unable to initialize ${pkg.name}:: ${error.message}`);
|
||||
console.error(\`ERROR: Unable to initialize \${pkg.name}:: \${error.message}\`);
|
||||
|
||||
// TODO: Return asm version here as a fallback
|
||||
return null;
|
||||
|
||||
@@ -1579,10 +1579,10 @@
|
||||
typescript "^3.3.4000"
|
||||
vuepress "^1.0.0-alpha.44"
|
||||
|
||||
"@polkadot/util@^0.41.1":
|
||||
version "0.41.1"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.41.1.tgz#b67762a0a7408138d843adc7240944e704e819e7"
|
||||
integrity sha512-1mFHxxdXyRgeFk0ygfJklzsf6HiEEMikrpUgr+3Dw5S7KromjPD8EbWkpcZQZ3Png5PTwGyjrx7MYY4Ajiu5xQ==
|
||||
"@polkadot/util@^0.76.0-beta.0":
|
||||
version "0.76.0-beta.0"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.76.0-beta.0.tgz#afc8f71dd2f4cc5bc31156b894ede5d7f1597b09"
|
||||
integrity sha512-gINXEBxaEKyKXojwvDhm+ujH/1aSdF+yI6t650FNjLziOMGtvLsMllnw8bW7pZUQO0TcbuKJeFuB2JChhnk7mQ==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.4.0"
|
||||
"@types/bn.js" "^4.11.4"
|
||||
|
||||
Reference in New Issue
Block a user