diff options
| author | Jason <jason.daurus@gmail.com> | 2016-03-02 22:14:28 +0800 |
|---|---|---|
| committer | Jason <jason.daurus@gmail.com> | 2016-03-02 22:14:28 +0800 |
| commit | 035f482a444396e5c671c3350a0ea81ede8a66a1 (patch) | |
| tree | ada2570ce0a06aa12118b6127710abd99f381965 | |
| parent | 8089752cb2b13fdb13500e577c459ce34abbcbea (diff) | |
| download | mitmproxy-035f482a444396e5c671c3350a0ea81ede8a66a1.tar.gz mitmproxy-035f482a444396e5c671c3350a0ea81ede8a66a1.tar.bz2 mitmproxy-035f482a444396e5c671c3350a0ea81ede8a66a1.zip | |
[web] gulp: log errors from buildScript/bundle
| -rw-r--r-- | web/gulpfile.js | 4 |
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()) |
