|
|
|
@ -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
|
|
|
|
|