 
 # See http://stackoverflow.com/questions/21602332/catching-gulp-mocha-errors
 handleError = (err) ->
-  console.warn err
+  if err.plugin isnt 'gulp-mocha'
+    console.warn err
   this.emit 'end'
 
 

  coff = plugins.coffee { bare: true }
    .on 'error', plugins.util.log

  console.info config.dest.js

  gulp.src config.src.coffee
    .pipe plugins.coffee { bare: true }
    .on 'error', plugins.util.log


gulp.task 'mocha', ['coffee'], ->
  gulp.src config.test.coffee, { read: false }
    .pipe plugins.mocha { reporter: 'spec' }
    .on 'error', handleError


