def print_error()

in dell_ai/cli/utils.py [0:0]


def print_error(message: str) -> None:
    """
    Print an error message to stderr and exit with status code 1.
    Uses Rich formatting for better readability.

    Args:
        message: Error message to print
    """
    console.print(
        Panel.fit(
            f"[bold red]Error:[/bold red] {message}",
            border_style="red",
            title="Dell AI CLI",
        )
    )
    raise typer.Exit(code=1)