diff options
| author | rr- <rr-@sakuya.pl> | 2016-09-29 11:15:58 +0200 |
|---|---|---|
| committer | rr- <rr-@sakuya.pl> | 2016-09-29 11:15:58 +0200 |
| commit | 3436bc3ef89745fa9643809761da9ec5bf8d2622 (patch) | |
| tree | 23da557b8ed9447fa34b2a53b5e7dfe4f2986c91 /client/build.js | |
| parent | 3d122441a2ac4f5174dc1d6846eed385af671b62 (diff) | |
client/build: improve reporting build errors
Diffstat (limited to 'client/build.js')
| -rw-r--r-- | client/build.js | 7 |
1 files changed, 7 insertions, 0 deletions
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(); |