From 8b8203cea8d87f0a8c2d8705052b3f6c22ed3a5f Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 27 Feb 2020 21:37:07 +0000 Subject: [PATCH] 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 3c02880..fb5c989 100644 --- a/scripts/hak/index.js +++ b/scripts/hak/index.js @@ -133,4 +133,4 @@ async function main() { } } -main(); +main().catch(process.exit(1));