diff --git a/view.go b/view.go index 2c4662e..f3de34e 100644 --- a/view.go +++ b/view.go @@ -53,8 +53,11 @@ func (v *View[K]) consumeReports(printReports bool) { }() for status := range v.reportCh { + if _, ok := v.taskMap[status.ID]; !ok { + panic(fmt.Sprintf("received report for unknown task (forgot to call View.Add()?): %v", v)) + } + v.lastReports[status.ID] = status - v.Add(status.ID) if printReports { v.print()