From 5402d3848f2345846dc8e7f4300a34c0bdc6cd14 Mon Sep 17 00:00:00 2001 From: sunwp <244372610@qq.com> Date: Tue, 15 Feb 2022 16:04:37 +0800 Subject: [PATCH] correct plugin typo (#1060) Signed-off-by: sunwp <244372610@qq.com> --- manager/searcher/plugin.go | 2 +- scheduler/scheduler/evaluator/plugin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/searcher/plugin.go b/manager/searcher/plugin.go index b52f5e983a8..0840c60ef6c 100644 --- a/manager/searcher/plugin.go +++ b/manager/searcher/plugin.go @@ -35,5 +35,5 @@ func LoadPlugin(dir string) (Searcher, error) { if rc, ok := client.(Searcher); ok { return rc, err } - return nil, errors.New("invalid client, not a ResourceClient") + return nil, errors.New("invalid searcher plugin") } diff --git a/scheduler/scheduler/evaluator/plugin.go b/scheduler/scheduler/evaluator/plugin.go index 27472376a88..85b07e54fe0 100644 --- a/scheduler/scheduler/evaluator/plugin.go +++ b/scheduler/scheduler/evaluator/plugin.go @@ -35,5 +35,5 @@ func LoadPlugin(dir string) (Evaluator, error) { if rc, ok := client.(Evaluator); ok { return rc, err } - return nil, errors.New("invalid client, not a ResourceClient") + return nil, errors.New("invalid evaluator plugin") }