Skip to main content

raw_failure

Function raw_failure 

Source
pub fn raw_failure(cause: &dyn Display) -> WorktreeCopyError
Expand description

What: A failure from the operating system or from a process, carried as its own text with no wrapper sentence. Why: Every step that does not own a wording of its own leaves the raw text to the nearest enclosing wrapper. Messages cli-git owns always start with cli-git:, so a raw text can be told apart without another flag.

In TS you’d write (pseudocode):

error // a non-WorktreeCopyError propagates unchanged to the caller that wraps it