make it one sentence

This commit is contained in:
ruokai.lai 2017-03-07 17:24:15 +11:00
parent cca55ed764
commit 121611834f

View File

@ -271,8 +271,7 @@ func AnalyzeLocalImage(imageName string, minSeverity types.Priority, endpoint, m
} else if !hasVisibleVulnerabilities { } else if !hasVisibleVulnerabilities {
fmt.Printf("%s No vulnerabilities matching the minimum severity level were detected in your image\n", color.YellowString("NOTE:")) fmt.Printf("%s No vulnerabilities matching the minimum severity level were detected in your image\n", color.YellowString("NOTE:"))
} else { } else {
errorTotal := errors.New("total Errors: "+strconv.Itoa(len(vulnerabilities))) return fmt.Errorf("A total of %d vulnerabilities have been detected in your image", len(vulnerabilities))
return errorTotal
} }
return nil return nil