Skip to main content

Module errors

Module errors 

Source
Expand description

Centralized CLI error helpers.

Provides a single point for emitting CLI-subcommand failure logs + exiting with the appropriate status code. Used by the run subcommand (and future subcommands) to keep error-handling consistent.

Per ADR-0012, CLI bootstrap/subcommand failures are category (d) — keep error! with // log-policy: system-broken annotation. The annotation lives at each call site in the subcommand bodies.

Functions§

report_cli_failure_and_exit
Report a fatal CLI subcommand failure: print to stderr and exit(1).
report_cli_failure_msg_and_exit
Report a fatal CLI subcommand failure with a non-CamelError error type.