Fix error logging (#14)

This commit is contained in:
Jaco Greeff
2019-03-30 10:20:23 +01:00
committed by GitHub
parent f9579abe75
commit ed3e822d82
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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"
}
}
+2 -2
View File
@@ -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;
+4 -4
View File
@@ -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"