Add error handling to GenBashCompletion
Add error handling to GenBashCompletion

Since the switch from *bytes.Buffer to io.Writer, errors can no longer
be ignored. Also makes the reuse of GenBashCompletion in
GenBashCompletionFile without a buffer treat errors properly again.

anthonyfok/cobra,liggitt/cobra,spf13/cobra,eparis/cobra