Skip to content

Commit

Permalink
Add error message if failed to parse URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ameenmaali committed Mar 22, 2020
1 parent dfeef79 commit 08d1f46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ func main() {
fullUrl, err := url.Parse(u)
// If URL can't be parsed, ignore and move on
if err != nil {
if opts.Debug {
printRed("[%v] error parsing URL or query parameters for\n", rule)
}
continue
}

Expand Down

0 comments on commit 08d1f46

Please sign in to comment.