From cdace72e222d5b5b8c612f428c4f61e8829fc389 Mon Sep 17 00:00:00 2001 From: edoardottt Date: Tue, 30 Nov 2021 11:16:31 +0100 Subject: [PATCH] Fix Print errors #19 --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 79812c2..eff20ce 100644 --- a/main.go +++ b/main.go @@ -76,7 +76,7 @@ func main() { if err != nil { log.Fatal(err) } - log.Println(emptyFile) + log.Println("Created " + outputFile) emptyFile.Close() var wg sync.WaitGroup @@ -126,7 +126,7 @@ func checkreflection(link string) { decoded := url.QueryEscape(link) v, err := url.Parse(decoded) if err != nil { - fmt.Printf("Error is %e", err) + fmt.Printf("Error is %s\n", err.Error()) } u = v } @@ -136,7 +136,7 @@ func checkreflection(link string) { } q, err := url.ParseQuery(u.RawQuery) if err != nil { - fmt.Printf("Error is %e", err) + fmt.Printf("Error is %s\n", err.Error()) } if requestData != "" {