Skip to content

Commit

Permalink
Do not wrap logout error twice (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket authored Mar 30, 2021
1 parent 46ed1bd commit 2c2b578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c2b578

Please sign in to comment.