Allows you to set single handler instead of appending .on('error', log) to each pipe.
In contrary to gulp-plumber
if error occures task will stop, it is, though do not means that your watch
task will stop (see example).
How to use
const errorHandler = ; gulp;
you can pass in function
as well
const logError = { gutil; this;}; gulp;
Note: if you're passing your own function in, you need to emit 'end'
manually (if you're using plugin which already doing this, such as gulp-notify, you dont need to do this).
Example
const gulp = ;const sass = ;const del = ;const errorHandler = ; gulp; gulp; gulp; gulp