Skip to content

Commit

Permalink
Update error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwu08 authored Aug 20, 2021
1 parent 91fcfd1 commit 7eed492
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package controller

import (
"context"
"errors"
"fmt"
"sync"
"time"
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7eed492

Please sign in to comment.