Skip to content

Commit 6cb340a

Browse files
committed
(#12) rubySass error handler
1 parent 357263a commit 6cb340a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gulp/styles.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ gulp.task('styles', function () {
3838
.pipe(indexFilter)
3939
.pipe($.inject(injectFiles, injectOptions))
4040
.pipe(indexFilter.restore())
41-
.pipe($.rubySass(sassOptions))
41+
.pipe($.rubySass(sassOptions)
42+
.on('error', function (err) {
43+
console.error('Error!', err.message);
44+
})
45+
)
4246

4347
.pipe($.autoprefixer())
4448
.on('error', function handleError(err) {

0 commit comments

Comments
 (0)