Skip to content

Commit d0cd19c

Browse files
committed
CM-59486-fix-hook-auth-error-message
1 parent e609c85 commit d0cd19c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cycode/cli/apps/ai_guardrails/scan/scan_command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ def _get_auth_error_message(error: Exception) -> str:
3434
"""Get user-friendly message for authentication errors."""
3535
if isinstance(error, click.ClickException):
3636
# Missing credentials
37-
return f'{error.message} Please run `cycode configure` to set up your credentials.'
37+
return f'{error.message} Please run `cycode auth` to set up your credentials.'
3838

3939
if isinstance(error, HttpUnauthorizedError):
4040
# Invalid/expired credentials
4141
return (
4242
'Unable to authenticate to Cycode. Your credentials are invalid or have expired. '
43-
'Please run `cycode configure` to update your credentials.'
43+
'Please run `cycode auth` to update your credentials.'
4444
)
4545

4646
# Fallback
47-
return 'Authentication failed. Please run `cycode configure` to set up your credentials.'
47+
return 'Authentication failed. Please run `cycode auth` to set up your credentials.'
4848

4949

5050
def _initialize_clients(ctx: typer.Context) -> None:

0 commit comments

Comments
 (0)