Skip to main content

lifecycle_failure

Function lifecycle_failure 

Source
pub fn lifecycle_failure(error: WorktreeCopyError) -> WorktreeCopyError
Expand description

What: The lifecycle’s wording for a raw failure that reached the top of a copy. Why: The user sees the generic sentence once, with the underlying cause after it.

In TS you’d write (pseudocode):

function asWorktreeCopyError(error: unknown): WorktreeCopyError;