Use ErrorWriter in cli so that errors get written to stderr

This commit is contained in:
Bo Ingram 2016-11-29 21:23:15 -07:00
parent 1b67c55c3e
commit 45142555a8
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ import (
var Commands map[string]cli.CommandFactory
func init() {
ui := &cli.BasicUi{Writer: os.Stdout}
ui := &cli.BasicUi{Writer: os.Stdout, ErrorWriter: os.Stderr}
Commands = map[string]cli.CommandFactory{
"agent": func() (cli.Command, error) {