small fixes

This commit is contained in:
emizzle 2018-06-01 14:06:02 +10:00
parent 446f28ed6f
commit 74d5ee3984
4 changed files with 7 additions and 10 deletions

View File

@ -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", "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 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 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"
} }

View File

@ -1,12 +1,6 @@
const UploadIPFS = require('./upload.js'); const UploadIPFS = require('./upload.js');
const utils = require('../../utils/utils.js'); const utils = require('../../utils/utils.js');
const fs = require('../../core/fs.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 IpfsApi = require('ipfs-api');
const _ = require('underscore'); const _ = require('underscore');

View File

@ -55,6 +55,7 @@ class SpecialConfigs {
self.replaceWithAddresses(cmd, nextMapCb); self.replaceWithAddresses(cmd, nextMapCb);
}, (err, result) => { }, (err, result) => {
if (err) { if (err) {
self.logger.trace(err);
return cb(new Error("error running afterDeploy")); return cb(new Error("error running afterDeploy"));
} }
let onDeployCode = result; let onDeployCode = result;

View File

@ -170,7 +170,7 @@ class Storage {
} }
self._startStorageNode(platform, (err) => { self._startStorageNode(platform, (err) => {
if (err) { if (err) {
self.logger.error(err); self._logger.error(err);
return callback(errorObj); return callback(errorObj);
} }
// Check endpoint again to see if really did start // Check endpoint again to see if really did start
@ -196,7 +196,7 @@ class Storage {
} }
self._startStorageNode(dappConn.provider, (err) => { self._startStorageNode(dappConn.provider, (err) => {
if (err) { if (err) {
self.logger.error(err); self._logger.error(err);
return callback(errorObj); return callback(errorObj);
} }
// Check endpoint again to see if really did start // Check endpoint again to see if really did start