Skip to content

Commit

Permalink
🧹 improve logout error message on cli
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Jan 29, 2024
1 parent d3345c5 commit 7016a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cnquery/cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7016a28

Please sign in to comment.