Skip to content

Commit

Permalink
Log violated constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
prachirp authored and Mengqi Yu committed Mar 30, 2021
1 parent 8cc7eb5 commit 268fe74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ func parseResults(results []*opatypes.Result) error {
if !found {
path = "?"
}
msgs = append(msgs, fmt.Sprintf("%s\n\nname: %q\npath: %s", r.Msg, name, path))
constraintName := r.Constraint.GetName()
msgs = append(msgs, fmt.Sprintf("%s\n\nname: %q\npath: %s\nviolatedConstraint: %s", r.Msg, name, path, constraintName))
}

sort.Strings(msgs)
Expand Down

0 comments on commit 268fe74

Please sign in to comment.