diff --git a/github_utility/github_cli/main.py b/github_utility/github_cli/main.py index b717337..3846f33 100644 --- a/github_utility/github_cli/main.py +++ b/github_utility/github_cli/main.py @@ -78,8 +78,9 @@ def get_github_acces_token( access_token = integration.get_access_token(installation.id).token typer.echo(f"{access_token}") else: - raise ValueError( - "Provide GitHub App credentials (app_id, private_key, and repo).") + typer.echo( + f"Provide GitHub App credentials (app_id, private_key, and repo).", err=True) + raise typer.Exit(code=1) @app.command("create-issue-from-file")