1
0
mirror of https://github.com/go-task/task.git synced 2025-01-06 03:53:54 +02:00

Merge pull request #317 from hatappi/master

suppress context errors when use watch option
This commit is contained in:
Andrey Nering 2020-05-01 15:38:16 -03:00 committed by GitHub
commit c36f0f6f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,10 @@ func (e *Executor) watchTasks(calls ...taskfile.Call) error {
}
func isContextError(err error) bool {
if taskRunErr, ok := err.(*taskRunError); ok {
err = taskRunErr.err
}
return err == context.Canceled || err == context.DeadlineExceeded
}