From 3436bc3ef89745fa9643809761da9ec5bf8d2622 Mon Sep 17 00:00:00 2001
From: rr- <rr-@sakuya.pl>
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 74655055..e1792a75 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();