Print a warning that names the failed CLI phase and target.
(
phase: str,
target_kind: str,
target: str | None,
exc: BaseException,
*,
continuing: str | None = None,
)
| 342 | |
| 343 | |
| 344 | def _print_cli_warning( |
| 345 | phase: str, |
| 346 | target_kind: str, |
| 347 | target: str | None, |
| 348 | exc: BaseException, |
| 349 | *, |
| 350 | continuing: str | None = None, |
| 351 | ) -> None: |
| 352 | """Print a warning that names the failed CLI phase and target.""" |
| 353 | label = _cli_phase_label(phase, target_kind, target) |
| 354 | console.print(f"[yellow]Warning:[/yellow] Failed to {label}: {_cli_error_detail(exc)}") |
| 355 | if continuing: |
| 356 | console.print(f"[dim]{continuing}[/dim]") |
| 357 | |
| 358 | |
| 359 | # Constants kept for backward compatibility with presets and extensions. |
no test coverage detected