From 8662177fc47f94b1461c6d9f6ed1a52b96922dff Mon Sep 17 00:00:00 2001 From: Lasse Damgaard Date: Wed, 6 Feb 2019 11:08:55 +0100 Subject: [PATCH] Log when cli runner catches unhandled promise rejection This is just to provide some more context for debugging. --- bin/cli-runner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/cli-runner.js b/bin/cli-runner.js index b4373e54..624c02a1 100644 --- a/bin/cli-runner.js +++ b/bin/cli-runner.js @@ -9,6 +9,7 @@ /* eslint-env node */ process.on('unhandledRejection', e => { + console.log('Unhandled promise rejection caught by Fusion. The error will be rethrown.'); throw e; });