pub fn wrap_raw(error: WorktreeCopyError, message: &str) -> WorktreeCopyErrorExpand description
What: Words a raw failure with the given message, and leaves an owned failure as it is. Why: Each wrapping step names the input it was handling, and never hides a message cli-git already wrote.
In TS you’d write (pseudocode):
error instanceof WorktreeCopyError ? error : new WorktreeCopyError(message, error)