mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-25 21:18:51 +00:00
Merge pull request #468 from embark-framework/fix_service_check
early return if failing to connect to node
This commit is contained in:
commit
4d0453fede
@ -115,7 +115,7 @@ class Blockchain {
|
|||||||
function checkNodeConnection(next) {
|
function checkNodeConnection(next) {
|
||||||
self.assertNodeConnection(true, (err) => {
|
self.assertNodeConnection(true, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(null, {name: "No Blockchain node found", status: 'off'});
|
return next(true, {name: "No Blockchain node found", status: 'off'});
|
||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
@ -137,7 +137,7 @@ class Blockchain {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
], (err, statusObj) => {
|
], (err, statusObj) => {
|
||||||
if (err) {
|
if (err && err !== true) {
|
||||||
self.logger.error(err);
|
self.logger.error(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user