From cae94e7b6df1684a3b61af3e7aa0f4e68e8df594 Mon Sep 17 00:00:00 2001 From: typeid Date: Fri, 9 May 2025 14:02:37 +0200 Subject: [PATCH] fix: panic in k8sgpt auth update (#1497) Signed-off-by: Claudio Busse Co-authored-by: Alex Jones --- cmd/auth/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/auth/update.go b/cmd/auth/update.go index 7f28f68..66ba06e 100644 --- a/cmd/auth/update.go +++ b/cmd/auth/update.go @@ -90,7 +90,7 @@ var updateCmd = &cobra.Command{ } } if !foundBackend { - color.Red("Error: %s does not exist in configuration file. Please use k8sgpt auth new.", args[0]) + color.Red("Error: %s does not exist in configuration file. Please use k8sgpt auth new.", backend) os.Exit(1) }