Skip to content

Commit

Permalink
Closure: handle rejection from stream
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 3, 2017
1 parent 8313bba commit 9047149
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lighthouse-core/closure/closure-type-checking.js
Expand Up @@ -93,6 +93,10 @@ gulp.task('compile-report', () => {
formatting: 'PRETTY_PRINT',
preserve_type_annotations: true,
}))
.on('error', err => {
gutil.log(err.message);
return process.exit(1);
})
.pipe(gulp.dest('../'))
.on('end', () => {
gutil.log('Closure compilation successful.');
Expand Down

0 comments on commit 9047149

Please sign in to comment.