From 3436bc3ef89745fa9643809761da9ec5bf8d2622 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 29 Sep 2016 11:15:58 +0200 Subject: [PATCH] client/build: improve reporting build errors --- client/build.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/build.js b/client/build.js index 7465505..e1792a7 100644 --- a/client/build.js +++ b/client/build.js @@ -213,6 +213,13 @@ function bundleBinaryAssets() { }); } +process.on('uncaughtException', (error) => { + const stack = error.stack; + delete error.stack; + console.log(error); + console.log(stack); +}); + const config = getConfig(); bundleConfig(config); bundleBinaryAssets();