variable ReplaceFailed

The replace itself failed, after the new binary was downloaded and verified. Carries the recovery path when the old binary had to be moved aside first.

import * as Install from './install.ts';

Install.ReplaceFailed({ target: '/opt/qunitx/qunitx', reason: 'EPERM' }).code; // 'UpgradeReplaceFailed'

Type

Failure.FailureFactory<
"UpgradeReplaceFailed",
{ target: string; reason: string; recovered?: string; }
>

Usage

import { ReplaceFailed } from "lib/commands/upgrade/install.ts";