mirror of https://github.com/embarklabs/embark.git
early return if failing to connect to node
This commit is contained in:
parent
0858092306
commit
cd96aebdcd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue