Include diagnostic prefix in the output for the diff display. (#2132)

This commit is contained in:
CyrusNajmabadi 2018-10-30 17:46:22 -07:00 committed by GitHub
parent 9b1c2ff54d
commit 73b42d753b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@ func renderDiffDiagEvent(payload engine.DiagEventPayload, opts Options) string {
if payload.Severity == diag.Debug && !opts.Debug {
return ""
}
return opts.Color.Colorize(payload.Message)
return opts.Color.Colorize(payload.Prefix + payload.Message)
}
func renderStdoutColorEvent(payload engine.StdoutEventPayload, opts Options) string {