diff --git a/precondition.go b/precondition.go index 35481ece79..f4e69e6dfe 100644 --- a/precondition.go +++ b/precondition.go @@ -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 } }