client/build: improve reporting build errors

This commit is contained in:
rr- 2016-09-29 11:15:58 +02:00
parent 3d122441a2
commit 3436bc3ef8
1 changed files with 7 additions and 0 deletions

View File

@ -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(); const config = getConfig();
bundleConfig(config); bundleConfig(config);
bundleBinaryAssets(); bundleBinaryAssets();