Skip to content

Commit

Permalink
cmd/vulnreport: Add the error message to the unable to label warning.
Browse files Browse the repository at this point in the history
Change-Id: If6db5166175b63cee4516e0fd357a53dd6a823e6
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/600835
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
ianthehat committed Jul 24, 2024
1 parent 7010d1a commit 73d6765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vulnreport/triage.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (t *triage) triage(ctx context.Context, iss *issues.Issue) {
log.Infof("issue #%d: would set labels: [%s]", iss.Number, strings.Join(labels, ", "))
} else {
if err := t.ic.SetLabels(ctx, iss.Number, labels); err != nil {
log.Warnf("issue #%d: could not auto-set label(s) %s", iss.Number, labels)
log.Warnf("issue #%d: could not auto-set label(s) %s\n\t%v", iss.Number, labels, err)
}
}
t.addStat(iss, statTriaged, "")
Expand Down

0 comments on commit 73d6765

Please sign in to comment.