We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91fcfd1 commit 7eed492Copy full SHA for 7eed492
pkg/internal/controller/controller.go
@@ -18,7 +18,6 @@ package controller
18
19
import (
20
"context"
21
- "errors"
22
"fmt"
23
"sync"
24
"time"
@@ -137,7 +136,7 @@ func (c *Controller) Start(ctx context.Context) error {
137
136
// but lock outside to get proper handling of the queue shutdown
138
c.mu.Lock()
139
if c.Started {
140
- 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)
141
}
142
143
c.initMetrics()
0 commit comments