Print an actionable error to stderr and exit non-zero.
(message: str)
| 40 | |
| 41 | |
| 42 | def _fail(message: str) -> None: |
| 43 | """Print an actionable error to stderr and exit non-zero.""" |
| 44 | # Use the stderr console so the error never lands on stdout, which under |
| 45 | # ``--json`` carries the machine-readable payload and must stay parseable. |
| 46 | err_console.print(f"[red]Error:[/red] {message}", style=None) |
| 47 | raise typer.Exit(code=1) |
| 48 | |
| 49 | |
| 50 | def _user_config_dir() -> Path: |