From 743c3684c5bfa9cb373742268baeb66bc50b1035 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 10 Jun 2014 10:32:59 -0700 Subject: [PATCH] comments --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 89fccc73a..dabc2e084 100644 --- a/main.go +++ b/main.go @@ -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 {