engine: resources: cron: Fix typo in error message

This commit is contained in:
James Shubin
2018-12-28 20:00:14 -05:00
parent 22105af720
commit 246ecd8607

View File

@@ -410,7 +410,7 @@ func (obj *CronRes) unitCheckApply(apply bool) (checkOK bool, err error) {
func (obj *CronRes) Cmp(r engine.Res) error { func (obj *CronRes) Cmp(r engine.Res) error {
res, ok := r.(*CronRes) res, ok := r.(*CronRes)
if !ok { if !ok {
return fmt.Errorf("not a timer res") return fmt.Errorf("res is not the same kind")
} }
if obj.State != res.State { if obj.State != res.State {