diff --git a/spin/command.go b/spin/command.go index 3c55e1d..6c7e1ea 100644 --- a/spin/command.go +++ b/spin/command.go @@ -25,6 +25,7 @@ func (o Options) Run() error { command: o.Command, align: o.Align, showOutput: o.ShowOutput && isTTY, + showError: o.ShowError, timeout: o.Timeout, hasTimeout: o.Timeout > 0, } @@ -40,10 +41,6 @@ func (o Options) Run() error { return exit.ErrAborted } - if err != nil { - return fmt.Errorf("failed to access stdout: %w", err) - } - // If the command succeeds, and we are printing output and we are in a TTY then push the STDOUT we got to the actual // STDOUT for piping or other things. if m.status == 0 {