Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Nov 23, 2015
1 parent 5483ab3 commit b82bf45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion check-log/check-log.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ func run(args []string) *checkers.Checker {
if critNum > opts.CritOver {
checkSt = checkers.CRITICAL
}
msg := fmt.Sprintf("%d warnings, %d criticals for pattern %s. %s", warnNum, critNum, opts.Pattern, errorOverall)
msg := fmt.Sprintf("%d warnings, %d criticals for pattern /%s/.", warnNum, critNum, opts.Pattern)
if errorOverall != "" {
msg += "\n" + errorOverall
}
return checkers.NewChecker(checkSt, msg)
}

Expand Down

0 comments on commit b82bf45

Please sign in to comment.