From 48dc1ab3963c965976645aff99b868070adf2494 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 22 Jun 2021 13:35:39 +0100 Subject: [PATCH] Print rejections that reach the root handler --- scripts/hak/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/hak/index.js b/scripts/hak/index.js index df30d58..9d7c51a 100644 --- a/scripts/hak/index.js +++ b/scripts/hak/index.js @@ -145,4 +145,7 @@ async function main() { } } -main().catch(() => process.exit(1)); +main().catch(err => { + console.error(err); + process.exit(1); +});