Merge pull request #468 from embark-framework/fix_service_check

early return if failing to connect to node
This commit is contained in:
Jonathan Rainville 2018-05-30 08:24:15 -04:00 committed by GitHub
commit 4d0453fede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}