This commit is contained in:
Mitchell Hashimoto 2014-06-10 10:32:59 -07:00
parent f9e830705d
commit 743c3684c5

View File

@ -114,6 +114,9 @@ func wrappedMain() int {
return exitCode
}
// copyOutput uses output prefixes to determine whether data on stdout
// should go to stdout or stderr. This is due to panicwrap using stderr
// as the log and error channel.
func copyOutput(r io.Reader) {
pr, err := prefixedio.NewReader(r)
if err != nil {