Skip to content

Commit c36f0f6

Browse files
authored
Merge pull request #317 from hatappi/master
suppress context errors when use watch option
2 parents 814f350 + bfc0339 commit c36f0f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

watch.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ func (e *Executor) watchTasks(calls ...taskfile.Call) error {
9191
}
9292

9393
func isContextError(err error) bool {
94+
if taskRunErr, ok := err.(*taskRunError); ok {
95+
err = taskRunErr.err
96+
}
97+
9498
return err == context.Canceled || err == context.DeadlineExceeded
9599
}
96100

0 commit comments

Comments
 (0)