Skip to content

Commit 16c2a41

Browse files
committed
fixed error in scheduler config
Signed-off-by: Nir Rozenbaum <[email protected]>
1 parent 3fe577e commit 16c2a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/epp/scheduling/scheduler_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (c *SchedulerConfig) AddPlugins(pluginObjects ...plugins.Plugin) error {
107107
}
108108
if picker, ok := plugin.(plugins.Picker); ok {
109109
if c.picker != nil {
110-
return fmt.Errorf("multiple Picker plugins registered")
110+
return fmt.Errorf("failed to set '%s' as picker, already have a registered picker plugin '%s'", picker.Name(), c.picker.Name())
111111
}
112112
c.picker = picker
113113
}

0 commit comments

Comments
 (0)