Skip to main content

publichandleError

Callable

  • handleError(err: unknown): void

  • Handles CLI errors.

    @remarks

    This function prints error message to logger and terminates current process with status code specified in err object.

    @example
    run().catch(handleError);

    Parameters

    • err: unknown

    Returns void