Skip to content

Commit 7eed492

Browse files
authored
Update error msg
1 parent 91fcfd1 commit 7eed492

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/internal/controller/controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package controller
1818

1919
import (
2020
"context"
21-
"errors"
2221
"fmt"
2322
"sync"
2423
"time"
@@ -137,7 +136,7 @@ func (c *Controller) Start(ctx context.Context) error {
137136
// but lock outside to get proper handling of the queue shutdown
138137
c.mu.Lock()
139138
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")
139+
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)
141140
}
142141

143142
c.initMetrics()

0 commit comments

Comments
 (0)