Update to ErrWriter and make available on app

This commit is contained in:
Matt Farina
2016-05-06 12:14:26 -04:00
parent 2a256d4c53
commit 6f0b442222
4 changed files with 21 additions and 8 deletions

View File

@@ -188,7 +188,7 @@ func printHelp(out io.Writer, templ string, data interface{}) {
err := t.Execute(w, data)
if err != nil {
// If the writer is closed, t.Execute will fail, and there's nothing
// we can do to recover. We could send this to OutWriter if we need.
// we can do to recover. We could send this to ErrWriter if we need.
return
}
w.Flush()