Merge remote-tracking branch 'origin/master' into psmit-hidden_command

This commit is contained in:
Dan Buch
2016-05-08 18:44:38 -04:00
6 changed files with 37 additions and 8 deletions

View File

@@ -194,7 +194,7 @@ func printHelp(out io.Writer, templ string, data interface{}) {
// If the writer is closed, t.Execute will fail, and there's nothing
// we can do to recover.
if os.Getenv("CLI_TEMPLATE_ERROR_DEBUG") != "" {
fmt.Fprintf(os.Stderr, "CLI TEMPLATE ERROR: %#v\n", err)
fmt.Fprintf(ErrWriter, "CLI TEMPLATE ERROR: %#v\n", err)
}
return
}