Skip to content

Commit

Permalink
add WARNING header to warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nxadm committed Jan 27, 2021
1 parent 8ff38ea commit 1066358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/certmin/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func getCerts(input string, sb *strings.Builder) ([]*x509.Certificate, error) {
if remote {
certs, warn, err = certmin.RetrieveCertsFromAddr(loc, timeOut)
if warn != nil {
sb.WriteString(color.YellowString(warn.Error()) + "\n\n")
sb.WriteString(color.YellowString("WARNING: " + warn.Error()) + "\n\n")
}
if err != nil {
return nil, err
Expand Down

0 comments on commit 1066358

Please sign in to comment.