From 8b8203cea8d87f0a8c2d8705052b3f6c22ed3a5f Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 27 Feb 2020 21:37:07 +0000 Subject: [PATCH 1/2] Exit with exit code on exception Otherwise running the check script will just exit with 0 which is pointless. --- scripts/hak/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hak/index.js b/scripts/hak/index.js index 3c02880b..fb5c9899 100644 --- a/scripts/hak/index.js +++ b/scripts/hak/index.js @@ -133,4 +133,4 @@ async function main() { } } -main(); +main().catch(process.exit(1)); From de1090cc18b4257710acfeb40a0496e235aa9ab5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 27 Feb 2020 21:43:19 +0000 Subject: [PATCH 2/2] Actually pass a function --- scripts/hak/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hak/index.js b/scripts/hak/index.js index fb5c9899..56e3a304 100644 --- a/scripts/hak/index.js +++ b/scripts/hak/index.js @@ -133,4 +133,4 @@ async function main() { } } -main().catch(process.exit(1)); +main().catch(() => process.exit(1));