Skip to content

Commit

Permalink
Merge pull request kubernetes#3615 from saschagrunert/err-message
Browse files Browse the repository at this point in the history
Fix error message for `err == nil`
  • Loading branch information
k8s-ci-robot authored May 14, 2024
2 parents 2368908 + 7431088 commit 38d66ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/anago/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func (d *DefaultStage) TagRepository() error {

// Ensure that the tag not already exists
if _, err := d.impl.RevParseTag(repo, version); err == nil {
return fmt.Errorf("tag %s already exists: %w", version, err)
return fmt.Errorf("tag %s already exists", version)
}

// Usually the build version contains a commit we can reference. If
Expand Down

0 comments on commit 38d66ed

Please sign in to comment.