variable RemoteUnreadable

A remote input could not be fetched — refused, 404, or not something a module can be made of.

import { RemoteUnreadable } from './remote-inputs.ts';

RemoteUnreadable({ url: 'https://x/a.js', why: '404 Not Found' }).message;
// 'could not read https://x/a.js — 404 Not Found'

Type

Failure.FailureFactory<"RemoteUnreadable", { url: string; why: string; }>

Usage

import { RemoteUnreadable } from "lib/setup/remote-inputs.ts";