Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
cmd: Print errors to stderr
Matthew Holt committed
Nov 8, 2019 at 09:59 UTC
e4a2add73f2ed5e0f6c24ae1231bb73b2fcc72c1
1 file changed
+1
-1
cmd/main.go
+1
-1
@@ -68,7 +68,7 @@ func Main() {
68
69
exitCode, err := subcommand.Func(Flags{fs})
70
if err != nil {
71
- fmt.Printf("%s: %v\n", subcommand.Name, err)
71
+ fmt.Fprintf(os.Stderr, "%s: %v\n", subcommand.Name, err)
72
}
73
74
os.Exit(exitCode)