Merge pull request #3964 from ash2k/ash2k/handle-errors2

Handle errors
This commit is contained in:
Kubernetes Prow Robot
2021-06-07 16:26:03 -07:00
committed by GitHub
25 changed files with 232 additions and 126 deletions

View File

@@ -104,9 +104,9 @@ func (r *AnnotateRunner) ExecuteCmd(w io.Writer, pkgPath string) error {
return err
}
// print error message and continue if there are multiple packages to annotate
fmt.Fprintf(w, "%s\n", err.Error())
_, _ = fmt.Fprintf(w, "%s\n", err.Error())
} else {
fmt.Fprint(w, "added annotations in the package\n")
_, _ = fmt.Fprint(w, "added annotations in the package\n")
}
return nil
}