diff --git a/pkg/cluster/task/step.go b/pkg/cluster/task/step.go index e8f212087d..fa34ec37ff 100644 --- a/pkg/cluster/task/step.go +++ b/pkg/cluster/task/step.go @@ -126,11 +126,11 @@ func (s *StepDisplay) Execute(ctx context.Context) error { switch s.DisplayMode { case log.DisplayModeJSON: - return printDp(dp) + _ = printDp(dp) default: s.progressBar.UpdateDisplay(dp) } - return nil + return err } // Rollback implements the Task interface