Skip to content

Commit

Permalink
Displaying errors if the GET request didn't work (not necessarily a t…
Browse files Browse the repository at this point in the history
…imeout
  • Loading branch information
PaulSec committed Oct 18, 2020
1 parent f80b38f commit 0def9d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"sync"
"time"

"github.com/pkg/errors"
"github.com/spf13/cobra"
"gopkg.in/yaml.v2"
)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 0def9d5

Please sign in to comment.