• A function that maps an error to an Abort with the stack trace when coming from the CLI.

    Parameters

    • error: unknown

      Error to be mapped.

    Returns Promise<unknown>

    A promise that resolves with the new error object.