An external error is similar to Abort but has extra command and args attributes. This is useful to represent errors coming from external commands, usually executed by execa.

Hierarchy (View Summary)

Constructors

  • Parameters

    • message: OutputMessage
    • command: string
    • args: string[]
    • tryMessage:
          | null
          | string
          | TokenizedString
          | { command: string }
          | LinkToken
          | { char: string }
          | UserInputToken
          | { subdued: string }
          | { filePath: string }
          | ListToken
          | BoldToken
          | { info: string }
          | { warn: string }
          | { error: string }
          | Token[] = null

    Returns ExternalError

Properties

args: string[]
command: string
customSections?: CustomSection[]
formattedMessage?: TokenItem
nextSteps?: TokenItem<InlineToken>[]
skipOclifErrorHandling: boolean
tryMessage: null | TokenItem