1
0
mirror of https://github.com/go-task/task.git synced 2025-06-17 00:17:51 +02:00

Add CHANGELOG entry for #1022

This commit is contained in:
Andrey Nering
2023-03-08 22:37:04 -03:00
parent 88d644a7e9
commit 68aef2ef0d
2 changed files with 7 additions and 5 deletions

View File

@ -293,11 +293,9 @@ func (e *Executor) runCommand(ctx context.Context, t *taskfile.Task, call taskfi
Stdout: stdOut,
Stderr: stdErr,
})
defer func() {
if err := close(err); err != nil {
e.Logger.Errf(logger.Red, "task: unable to close writer: %v", err)
}
}()
if closeErr := close(err); closeErr != nil {
e.Logger.Errf(logger.Red, "task: unable to close writer: %v", closeErr)
}
if execext.IsExitError(err) && cmd.IgnoreError {
e.Logger.VerboseErrf(logger.Yellow, "task: [%s] command error ignored: %v", t.Name(), err)
return nil