From 246ecd860708feacd5b694321c1d6870586ca692 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 28 Dec 2018 20:00:14 -0500 Subject: [PATCH] engine: resources: cron: Fix typo in error message --- engine/resources/cron.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/resources/cron.go b/engine/resources/cron.go index f38ecd2b..568d0603 100644 --- a/engine/resources/cron.go +++ b/engine/resources/cron.go @@ -410,7 +410,7 @@ func (obj *CronRes) unitCheckApply(apply bool) (checkOK bool, err error) { func (obj *CronRes) Cmp(r engine.Res) error { res, ok := r.(*CronRes) if !ok { - return fmt.Errorf("not a timer res") + return fmt.Errorf("res is not the same kind") } if obj.State != res.State {