From 74d5ee39849a33713b10f8006c89a13626669bbe Mon Sep 17 00:00:00 2001 From: emizzle Date: Fri, 1 Jun 2018 14:06:02 +1000 Subject: [PATCH] small fixes --- lib/i18n/locales/en.json | 6 ++++-- lib/modules/ipfs/index.js | 6 ------ lib/modules/specialconfigs/index.js | 1 + lib/modules/storage/index.js | 4 ++-- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/lib/i18n/locales/en.json b/lib/i18n/locales/en.json index a9ed0f23..f05eb0fc 100644 --- a/lib/i18n/locales/en.json +++ b/lib/i18n/locales/en.json @@ -156,5 +156,7 @@ "Blockchain process ended before the end of this process. Code: %s": "Blockchain process ended before the end of this process. Code: %s", "Cannot start {{platform}} node on {{protocol}}://{{host}}{{port}}.": "Cannot start {{platform}} node on {{protocol}}://{{host}}{{port}}.", "Cannot upload: {{platform}} node is not running on {{url}}.": "Cannot upload: {{platform}} node is not running on {{url}}.", - "Cannot start {{platform}} node on {{url}}.": "Cannot start {{platform}} node on {{url}}." -} + "Cannot start {{platform}} node on {{url}}.": "Cannot start {{platform}} node on {{url}}.", + "Storage process for swarm ended before the end of this process. Code: 0": "Storage process for swarm ended before the end of this process. Code: 0", + "error uploading to swarm": "error uploading to swarm" +} \ No newline at end of file diff --git a/lib/modules/ipfs/index.js b/lib/modules/ipfs/index.js index f1773e5b..be0eb7fe 100644 --- a/lib/modules/ipfs/index.js +++ b/lib/modules/ipfs/index.js @@ -1,12 +1,6 @@ const UploadIPFS = require('./upload.js'); const utils = require('../../utils/utils.js'); const fs = require('../../core/fs.js'); -const RunCode = require('../../coderunner/runCode'); -const IpfsApi = require('ipfs-api'); -const _ = require('underscore'); -const UploadIPFS = require('./upload.js'); -const utils = require('../../utils/utils.js'); -const fs = require('../../core/fs.js'); const IpfsApi = require('ipfs-api'); const _ = require('underscore'); diff --git a/lib/modules/specialconfigs/index.js b/lib/modules/specialconfigs/index.js index 25b299df..b2b00a09 100644 --- a/lib/modules/specialconfigs/index.js +++ b/lib/modules/specialconfigs/index.js @@ -55,6 +55,7 @@ class SpecialConfigs { self.replaceWithAddresses(cmd, nextMapCb); }, (err, result) => { if (err) { + self.logger.trace(err); return cb(new Error("error running afterDeploy")); } let onDeployCode = result; diff --git a/lib/modules/storage/index.js b/lib/modules/storage/index.js index 40b8fd55..3327524f 100644 --- a/lib/modules/storage/index.js +++ b/lib/modules/storage/index.js @@ -170,7 +170,7 @@ class Storage { } self._startStorageNode(platform, (err) => { if (err) { - self.logger.error(err); + self._logger.error(err); return callback(errorObj); } // Check endpoint again to see if really did start @@ -196,7 +196,7 @@ class Storage { } self._startStorageNode(dappConn.provider, (err) => { if (err) { - self.logger.error(err); + self._logger.error(err); return callback(errorObj); } // Check endpoint again to see if really did start