     watch: './src/assets/**/*.*'
     destination: './public/'
 
+handleError = (err) ->
+  gutil.log err
+  gutil.beep()
+  this.emit 'end'
+
 gulp.task 'scripts', ->
 
   bundle = browserify paths.scripts.source
 
   build = bundle.bundle(debug: not production)
+    .on 'error', handleError
     .pipe source paths.scripts.filename
 
   build.pipe(streamify(uglify())) if production


  bundle.on 'update', ->
    build = bundle.bundle(debug: not production)
      .pipe source paths.scripts.filename

    build

  styles = gulp
    .src paths.styles.source
    .pipe(stylus({set: ['include css']}))
    .on 'error', handleError
    .pipe prefix 'last 2 versions', 'Chrome 34', 'Firefox 28', 'iOS 7'

  styles = styles.pipe(CSSmin()) if production
