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") }