From 4187c52e721040c900dd5963a13a7752575946cc Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Tue, 30 Mar 2021 11:39:19 -0300 Subject: [PATCH] Do not wrap logout error twice --- internal/cli/logout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/logout.go b/internal/cli/logout.go index 6f736fd26..2b86d8085 100644 --- a/internal/cli/logout.go +++ b/internal/cli/logout.go @@ -47,7 +47,7 @@ func logoutCmd(cli *cli) *cobra.Command { } if err := cli.removeTenant(selectedTenant); err != nil { - return fmt.Errorf("Unexpected error logging out tenant: %s: %v", selectedTenant, err) + return err // This error is already formatted for display } cli.renderer.Infof("Successfully logged out tenant: %s", selectedTenant)