diff --git a/pkg/internal/controller/controller.go b/pkg/internal/controller/controller.go index 224d300b89..458dc86b1b 100644 --- a/pkg/internal/controller/controller.go +++ b/pkg/internal/controller/controller.go @@ -18,7 +18,6 @@ package controller import ( "context" - "errors" "fmt" "sync" "time" @@ -137,7 +136,7 @@ func (c *Controller) Start(ctx context.Context) error { // but lock outside to get proper handling of the queue shutdown c.mu.Lock() if c.Started { - return errors.New("controller was started more than once. This is likely to be caused by being added to a manager multiple times") + return fmt.Errorf("controller:%v was started more than once. This is likely to be caused by being added to a manager multiple times", c.Name) } c.initMetrics()