Skip to content

Commit

Permalink
Merge bdfac07 into 3ec2931
Browse files Browse the repository at this point in the history
  • Loading branch information
fchastanet committed Nov 16, 2015
2 parents 3ec2931 + bdfac07 commit 21a3c20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/recipes/browserify-with-globs.md
Expand Up @@ -49,7 +49,12 @@ gulp.task('javascript', function () {

// pipe the Browserify stream into the stream we created earlier
// this starts our gulp pipeline.
b.bundle().pipe(bundledStream);
b.bundle()
.on('error', function (error) {
gutil.log('Browserify Error', error.message);
this.emit('end');
})
.pipe(bundledStream);
}).catch(function(err) {
// ensure any errors from globby are handled
bundledStream.emit('error', err);
Expand Down

0 comments on commit 21a3c20

Please sign in to comment.