From 121611834f8f3bdd73f9516f87c1eedd89108e1c Mon Sep 17 00:00:00 2001 From: "ruokai.lai" Date: Tue, 7 Mar 2017 17:24:15 +1100 Subject: [PATCH] make it one sentence --- contrib/analyze-local-images/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/analyze-local-images/main.go b/contrib/analyze-local-images/main.go index 9852f880..f3c836b8 100644 --- a/contrib/analyze-local-images/main.go +++ b/contrib/analyze-local-images/main.go @@ -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