aboutsummaryrefslogtreecommitdiffstats
path: root/web/gulpfile.js
diff options
context:
space:
mode:
authorJason <jason.daurus@gmail.com>2016-03-02 22:14:28 +0800
committerJason <jason.daurus@gmail.com>2016-03-02 22:14:28 +0800
commit035f482a444396e5c671c3350a0ea81ede8a66a1 (patch)
treeada2570ce0a06aa12118b6127710abd99f381965 /web/gulpfile.js
parent8089752cb2b13fdb13500e577c459ce34abbcbea (diff)
downloadmitmproxy-035f482a444396e5c671c3350a0ea81ede8a66a1.tar.gz
mitmproxy-035f482a444396e5c671c3350a0ea81ede8a66a1.tar.bz2
mitmproxy-035f482a444396e5c671c3350a0ea81ede8a66a1.zip
[web] gulp: log errors from buildScript/bundle
Diffstat (limited to 'web/gulpfile.js')
-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())