MCPcopy
hub / github.com/github/spec-kit / _cli_error_detail

Function _cli_error_detail

src/specify_cli/__init__.py:330–333  ·  view source on GitHub ↗

Return a compact one-line exception detail for CLI output.

(exc: BaseException)

Source from the content-addressed store, hash-verified

328
329
330def _cli_error_detail(exc: BaseException) -> str:
331 """Return a compact one-line exception detail for CLI output."""
332 detail = str(exc).replace("\n", " ").strip()
333 return detail or exc.__class__.__name__
334
335
336def _cli_phase_label(phase: str, target_kind: str, target: str | None = None) -> str:

Callers 1

_print_cli_warningFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected