Skip to main content

cli_error_event

Function cli_error_event 

Source
pub fn cli_error_event(error: &CliError) -> Event
Expand description

Wrap a CLI-resolution failure in an event whose code names the failure.

The classification lives in code, the way document_path_not_found and its siblings already do — not in a second field beside a generic cli_error. One error taxonomy, one place to read it, and the skill’s standing instruction (“branch on error.code”) covers CLI errors too.

The event never carries raw argument values; message names the offending argument, and hint says what to run next.