make it one sentence

pull/343/head
ruokai.lai 7 years ago
parent cca55ed764
commit 121611834f

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

Loading…
Cancel
Save