makeErr = (command, error, ctx) => {
  ctx.errors.add(TaskError)

  // https://nodejs.org/api/events.html#error-events
  ctx.events.emit(TASK_ERROR, TaskError)

  handleOutput(command, error, ctx, true)
  const tag = getTag(error)
  return new Error(`${chalk.redBright(command)} ${chalk.dim(`[${tag}]`)}`)
}
Create a error output depending on process result.

@param {string} command
@param {import('nano-spawn').SubprocessError} error
@param {Object} ctx
@returns {Error}