Merge pull request #883 from SkynetLabs/change-exit-code-on-failure

Change exit code on failure
This commit is contained in:
Ivaylo Novakov 2021-06-16 12:24:34 +02:00 committed by GitHub
commit f56bacb68b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +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)) {
if (entry.checks.some(({ up }) => !up)) {
console.log(entry.checks.filter(({ up }) => !up));
process.exit(1);
}
}