Update to ErrWriter and make available on app
This commit is contained in:
2
help.go
2
help.go
@@ -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()
|
||||
|
Reference in New Issue
Block a user