Skip to content

Commit

Permalink
MINOR: annotations: print annotation name in error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mo3m3n committed Jun 16, 2021
1 parent d8738d0 commit 4f2d844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/annotations/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ func HandleAnnotation(a Annotation, value store.StringW, forceParse bool) (updat
err := a.Parse(value, forceParse)
if err != nil {
if !errors.Is(err, ErrEmptyStatus) {
logger.Error(err)
logger.Errorf("%s: %s", a.GetName(), err)
}
return false
}
err = a.Update()
if err != nil {
logger.Error(err)
logger.Errorf("%s: %s", a.GetName(), err)
return false
}
return true
Expand Down

0 comments on commit 4f2d844

Please sign in to comment.