Skip to content

Commit

Permalink
Remove error prefix for generic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolson committed Mar 19, 2024
1 parent 7751b73 commit 0ad3dad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ func newRootCommand() *cobra.Command {
panic(err)
}

cmd.SetErrPrefix("")

cmd.AddCommand(projects.NewProjectsCmd())
cmd.AddCommand(setupCmd)

Expand All @@ -78,7 +76,7 @@ func Execute() {
errors.Is(err, errs.ErrUnauthorized):
fmt.Fprintln(os.Stderr, err.Error())
default:
fmt.Println(rootCmd.ErrPrefix(), err.Error())
fmt.Println(err.Error())
fmt.Println(rootCmd.UsageString())
}
}
Expand Down

0 comments on commit 0ad3dad

Please sign in to comment.