From: Andrew Gerrand Date: Sun, 22 May 2011 01:55:02 +0000 (+1000) Subject: flag: fix build X-Git-Tag: weekly.2011-05-22~6 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3975b9910ce64d1bb00031c7d137dcdae069cbc1;p=gostls13.git flag: fix build R=r CC=golang-dev https://golang.org/cl/4543064 --- diff --git a/src/pkg/flag/flag.go b/src/pkg/flag/flag.go index ec254fd888..e5d2f94e9b 100644 --- a/src/pkg/flag/flag.go +++ b/src/pkg/flag/flag.go @@ -567,7 +567,7 @@ func Var(value Value, name string, usage string) { // returns the error. func (f *FlagSet) failf(format string, a ...interface{}) os.Error { err := fmt.Errorf(format, a...) - fmt.Println(errc) + fmt.Fprintln(os.Stderr, err) if f == commandLine { Usage() } else {