Skip to content

Commit

Permalink
Fix logic error in #1532
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Jul 3, 2024
1 parent 2a73d77 commit 367d4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func Execute(cmd *cobra.Command) {

// Run the command
cmd, err := cmd.ExecuteContextC(ctx)
if err != nil && errors.Is(err, ErrAlreadyPrinted) {
if err != nil && !errors.Is(err, ErrAlreadyPrinted) {
// If cmdio logger initialization succeeds, then this function logs with the
// initialized cmdio logger, otherwise with the default cmdio logger
cmdio.LogError(cmd.Context(), err)
Expand Down

0 comments on commit 367d4f8

Please sign in to comment.