aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-03-02 15:23:50 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-03-02 15:23:50 +0100
commitfab9dad940d6db15bb671a557fd51d1241e4ecbe (patch)
tree2abeb386408dcb0e577bad0133de643f1d929f3d
parenta1c76814e77751d79a7ea41db5036bc176089f86 (diff)
parent035f482a444396e5c671c3350a0ea81ede8a66a1 (diff)
downloadmitmproxy-fab9dad940d6db15bb671a557fd51d1241e4ecbe.tar.gz
mitmproxy-fab9dad940d6db15bb671a557fd51d1241e4ecbe.tar.bz2
mitmproxy-fab9dad940d6db15bb671a557fd51d1241e4ecbe.zip
Merge pull request #992 from gzzhanghao/gulp
[web] gulp: log errors from buildScript/bundle
-rw-r--r--web/gulpfile.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/gulpfile.js b/web/gulpfile.js
index 58f74098..3c2e3f15 100644
--- a/web/gulpfile.js
+++ b/web/gulpfile.js
@@ -96,6 +96,10 @@ function buildScript(bundler, filename, dev) {
function rebundle() {
return bundler.bundle()
+ .on('error', function(error) {
+ gutil.log(error + '\n' + error.codeFrame);
+ this.emit('end');
+ })
.pipe(dev ? plumber(handleError) : gutil.noop())
.pipe(source('bundle.js'))
.pipe(buffer())