mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 11:00:53 +08:00
cmd: Print errors to stderr
This commit is contained in:
parent
95615f5377
commit
e4a2add73f
|
@ -68,7 +68,7 @@ func Main() {
|
|||
|
||||
exitCode, err := subcommand.Func(Flags{fs})
|
||||
if err != nil {
|
||||
fmt.Printf("%s: %v\n", subcommand.Name, err)
|
||||
fmt.Fprintf(os.Stderr, "%s: %v\n", subcommand.Name, err)
|
||||
}
|
||||
|
||||
os.Exit(exitCode)
|
||||
|
|
Loading…
Reference in New Issue
Block a user