property Failure.format

Renders a failure as the one-line message the CLI would print.

Type

(
error: unknown,
options?: { stacks?: boolean; }
) => string

Usage

import { Failure } from "lib/api/index.ts";