docs: function gulpFail(message, failAfterCompletion) {
  
    var shouldFail = false;
    var getMessage = message;
  
  
  
    if (typeof getMessage !== 'function') {
      getMessage = function() {
        return (message || "Task was forced to fail.");
      };
    }
  
  
  
    var getError = function() {
      return new PluginError(PLUGIN_NAME, colors.red(getMessage()), { showStack: false });
    };
  
  
    var checkFile = function(file, _e, cb) {
      if (failAfterCompletion !== true) {
        cb(getError());
        return;
      }
  
      shouldFail = true;
  
      cb(null, file);
    };
  
  
    var checkStream = function() {
      if (failAfterCompletion === true && shouldFail) {
        this.emit('error', getError());
        return;
      }
      this.emit('end');
    };
  
  
    var onError = function() {
      this.emit('end');
    };
  
  
  
    return through.obj(checkFile, checkStream)
                  .on('error', onError);
  }