mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 13:43:47 +03:00
cmd: Print errors to stderr
This commit is contained in:
parent
95615f5377
commit
e4a2add73f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue