early return if failing to connect to node

This commit is contained in:
Iuri Matias 2018-05-28 17:55:59 -04:00
parent 0858092306
commit cd96aebdcd
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ class Blockchain {
function checkNodeConnection(next) {
self.assertNodeConnection(true, (err) => {
if (err) {
return next(null, {name: "No Blockchain node found", status: 'off'});
return next(true, {name: "No Blockchain node found", status: 'off'});
}
next();
});
@ -137,7 +137,7 @@ class Blockchain {
});
}
], (err, statusObj) => {
if (err) {
if (err && err !== true) {
self.logger.error(err);
return;
}