From 0def9d5803a8fa4cff6e62706e6f3512c1ac28b3 Mon Sep 17 00:00:00 2001 From: Paul A Date: Sun, 18 Oct 2020 11:33:49 +0200 Subject: [PATCH] Displaying errors if the GET request didn't work (not necessarily a timeout --- app/scan.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/scan.go b/app/scan.go index c4f252e..aaa8856 100644 --- a/app/scan.go +++ b/app/scan.go @@ -12,7 +12,6 @@ import ( "sync" "time" - "github.com/pkg/errors" "github.com/spf13/cobra" "gopkg.in/yaml.v2" ) @@ -133,7 +132,7 @@ func Scan(cmd *cobra.Command, args []string) { Verbose("Testing URL: "+tmpURL, verbose) httpResponse, err := pkg.HTTPGet(insecure, tmpURL, followRedirects, httpRequestTimeout) if err != nil { - _ = errors.Wrap(err, "Timeout of HTTP Request") + fmt.Println(err) } if httpResponse != nil {