Appearance
@loontail/minecraft-kit / planRepairFromError
Function: planRepairFromError()
ts
function planRepairFromError(input): Promise<RepairPlan>;Defined in: src/repair/from-error.ts:66
Derive a minimal RepairPlan from a typed MinecraftKitError thrown by a previous install / repair run. The plan re-uses the standard install actions for the artefacts named in error.context — no full verify sweep, no manual issue reconstruction.
Supported codes are listed in RepairFromErrorSupportedCodes. For any other code the function throws INVALID_INPUT with a message naming the unsupported code; the regular verify → plan → run flow is the correct fallback there.
Prefer kit.repair.fromError({ error, target }) over importing this directly.
Parameters
| Parameter | Type |
|---|---|
input | PlanRepairFromErrorInput |
Returns
Promise<RepairPlan>