mirror of
https://github.com/go-task/task.git
synced 2025-02-09 13:47:06 +02:00
fix(precondition): do not print error if context was aborted (#1338)
This commit is contained in:
parent
5168e54af7
commit
d741dfe26d
@ -21,7 +21,9 @@ func (e *Executor) areTaskPreconditionsMet(ctx context.Context, t *taskfile.Task
|
||||
Env: env.Get(t),
|
||||
})
|
||||
if err != nil {
|
||||
e.Logger.Errf(logger.Magenta, "task: %s\n", p.Msg)
|
||||
if !errors.Is(err, context.Canceled) {
|
||||
e.Logger.Errf(logger.Magenta, "task: %s\n", p.Msg)
|
||||
}
|
||||
return false, ErrPreconditionFailed
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user