Skip to content

Commit bfc0339

Browse files
author
hatappi
committed
suppress context errors when use watch option
1 parent 814f350 commit bfc0339

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)