diff --git a/remind/remind.go b/remind/remind.go index 4c7a8ad..e9b7b31 100644 --- a/remind/remind.go +++ b/remind/remind.go @@ -70,7 +70,10 @@ func innerLoadDB(db *stardb.StarDB, callback func(task Task)) (*Remind, error) { for _, task := range res { itask := new(Task) *itask = task - tmr := startimer.NewTimer(time.Now()) + tmr, err := startimer.NewTimer(time.Now()) + if err != nil { + return nil, err + } err = tmr.ImportRepeats(itask.TmrInfo) if err != nil { return nil, err