Skip to content

Commit

Permalink
Don't double-print errors when they occur
Browse files Browse the repository at this point in the history
  • Loading branch information
moskyb committed Aug 27, 2024
1 parent 6f50cc4 commit 330ee8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func mainRun() int {
}

if err := rootCmd.ExecuteContext(ctx); err != nil {
fmt.Fprintf(os.Stderr, "failed to execute command: %s\n", err)
// Errors already get printed by the cobra command runner
return 1
}

Expand Down

0 comments on commit 330ee8b

Please sign in to comment.