var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var imagemin = require('gulp-imagemin');


gulp.task('sass', function(){
  gulp.src('src/styles/*.scss')
      .pipe(sass())
      .pipe(autoprefixer())
      .pipe(gulp.dest('_site/styles'));
});

gulp.task('copy-assets', function(){
  gulp.src('src/*.html')
      .pipe(gulp.dest('_site/'));
});


gulp.task('imagemin', () =>
    gulp.src('src/images/*')
        .pipe(imagemin())
        .pipe(gulp.dest('_site/images'))
);

gulp.task('watch', function(){
  gulp.watch(['src/*.html'], ['copy-assets']);
  gulp.watch(['src/styles/*.scss'], ['sass']);
});

gulp.task('default', ['sass', 'copy-assets', 'imagemin', 'watch']);


@@ -141,24 +141,104 @@
 magemin');%0A%0A
+function handleError(err)%7B%0A  console.log(err.toString());%0A  this.emit('end');%0A%7D%0A
 %0Agulp.task('
@@ -307,16 +307,41 @@
 (sass())
+.on('error', handleError)
 %0A      .

add errorHandler for scss task