From 7016a28e366a4129839e61966635a83690d7e593 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Mon, 29 Jan 2024 22:00:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20improve=20logout=20error=20messa?= =?UTF-8?q?ge=20on=20cli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/cnquery/cmd/logout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cnquery/cmd/logout.go b/apps/cnquery/cmd/logout.go index e572fdbc6b..08dd8c0045 100644 --- a/apps/cnquery/cmd/logout.go +++ b/apps/cnquery/cmd/logout.go @@ -80,7 +80,7 @@ ensure the credentials cannot be used in the future. if !viper.GetBool("force") { log.Info().Msg("are you sure you want to revoke client access to Mondoo Platform? Use --force if you are sure") - return cli_errors.ExitCode1WithoutError + return cli_errors.NewCommandError(errors.New("--force is required to logout"), ConfigurationErrorCode) } // try to load config into credentials struct