diff --git a/packages/health-check/src/run.js b/packages/health-check/src/run.js index 121f3cb7..b1ccaaac 100644 --- a/packages/health-check/src/run.js +++ b/packages/health-check/src/run.js @@ -40,8 +40,8 @@ require("yargs/yargs")(process.argv.slice(2)).command( .write(); // exit with code 1 if any of the checks report failure - if (checks.some(({ up }) => !up)) { - console.log(checks); + if (entry.checks.some(({ up }) => !up)) { + console.log(entry.checks); process.exit(1); } }