Skip to content

Commit bea085a

Browse files
committed
Fix misuse of fmt.Fprintln
1 parent 8261b7a commit bea085a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func parseURL(rawURL string) *url.URL {
142142
}
143143
u, err := url.Parse(rawURL)
144144
if err != nil {
145-
fmt.Fprintln(os.Stderr, "Error: URL '%s' could not be parsed:", rawURL, err)
145+
fmt.Fprintf(os.Stderr, "Error: URL '%s' could not be parsed: %v\n", rawURL, err)
146146
os.Exit(1)
147147
} else if u.Scheme != "http" && u.Scheme != "https" {
148148
fmt.Fprintf(os.Stderr, "Error: Unknown URL scheme '%s' in URL '%s'. Use 'http' or 'https'.\n", u.Scheme, rawURL)

0 commit comments

Comments
 (0)