variable DaemonUnreachable

No daemon was listening — the ordinary case on a cold machine, not an error worth showing.

import * as Client from './client.ts';

const failure = Client.DaemonUnreachable();
failure.code; // 'DaemonUnreachable'
failure.message; // 'no daemon is listening for this project'

Type

Failure.FailureFactory<"DaemonUnreachable", undefined>
& ((
data?: undefined,
options?: Failure.FailureOptions
) => Failure.Failure<"DaemonUnreachable", undefined>)

Usage

import { DaemonUnreachable } from "lib/commands/daemon/client.ts";