Skip to content

Commit

Permalink
switch to ErrOrStderr
Browse files Browse the repository at this point in the history
  • Loading branch information
denik committed Jan 9, 2025
1 parent 1ce1050 commit 7531f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bundle/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func newValidateCommand() *cobra.Command {
return nil
case flags.OutputJSON:
renderOpts := render.RenderOptions{RenderSummaryTable: false}
err1 := render.RenderDiagnostics(cmd.OutOrStderr(), b, diags, renderOpts)
err1 := render.RenderDiagnostics(cmd.ErrOrStderr(), b, diags, renderOpts)
err2 := renderJsonOutput(cmd, b)

if err2 != nil {
Expand Down

0 comments on commit 7531f16

Please sign in to comment.