From 45142555a80e840613022656be47fd0da5c6077f Mon Sep 17 00:00:00 2001 From: Bo Ingram Date: Tue, 29 Nov 2016 21:23:15 -0700 Subject: [PATCH] Use ErrorWriter in cli so that errors get written to stderr --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index eb90a40932..31f5a7ca1b 100644 --- a/commands.go +++ b/commands.go @@ -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) {