MCPcopy Index your code
hub / github.com/github/spec-kit / _fail

Function _fail

src/specify_cli/commands/bundle/__init__.py:42–47  ·  view source on GitHub ↗

Print an actionable error to stderr and exit non-zero.

(message: str)

Source from the content-addressed store, hash-verified

40
41
42def _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
50def _user_config_dir() -> Path:

Callers 13

bundle_searchFunction · 0.85
bundle_infoFunction · 0.85
bundle_listFunction · 0.85
bundle_installFunction · 0.85
bundle_updateFunction · 0.85
bundle_removeFunction · 0.85
bundle_validateFunction · 0.85
bundle_buildFunction · 0.85
bundle_initFunction · 0.85
catalog_listFunction · 0.85
catalog_addFunction · 0.85

Calls 1

printMethod · 0.80