Skip to content

Commit

Permalink
Fix misuse of fmt.Fprintln
Browse files Browse the repository at this point in the history
  • Loading branch information
codesoap committed Dec 21, 2023
1 parent 8261b7a commit bea085a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func parseURL(rawURL string) *url.URL {
}
u, err := url.Parse(rawURL)
if err != nil {
fmt.Fprintln(os.Stderr, "Error: URL '%s' could not be parsed:", rawURL, err)
fmt.Fprintf(os.Stderr, "Error: URL '%s' could not be parsed: %v\n", rawURL, err)
os.Exit(1)
} else if u.Scheme != "http" && u.Scheme != "https" {
fmt.Fprintf(os.Stderr, "Error: Unknown URL scheme '%s' in URL '%s'. Use 'http' or 'https'.\n", u.Scheme, rawURL)
Expand Down

0 comments on commit bea085a

Please sign in to comment.