Source code for gyoza.cli.errors
"""Shared error helpers for the gyoza CLI."""
import typer
[docs]
def fail(message: str) -> None:
"""Print an error message and terminate with exit code 1."""
typer.echo(message, err=True)
raise typer.Exit(code=1)