]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] cmd/dist: Make windows.c's fatal() print to stderr
authorPieter Droogendijk <pieter@binky.org.uk>
Fri, 21 Sep 2012 19:53:55 +0000 (05:53 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Fri, 21 Sep 2012 19:53:55 +0000 (05:53 +1000)
commitdf2bb18faef404b8f294a54924321ca0d852cfb1
treeeeb724dd54bd432f1b152c334cfc4b338bd63e5e
parente1092f2746cf2d6a87ed65d19d53cc40b0737622
[release-branch.go1] cmd/dist: Make windows.c's fatal() print to stderr

««« backport 3f7501fdb220
cmd/dist: Make windows.c's fatal() print to stderr

Generating env.bat using dist env -wp > env.bat failed silently
if case of an error, because the message was redirected to env.bat.
Verbose messages still go to stdout, causing problems, but that's
a seperate change.
Made errprintf() identical to xprintf(), except for the output handle.
Yes, it's duplicate code, but most of the function is unpacking
the argument list and preparing it for WriteFile(), which has to be
done anyway.

R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/6343047

»»»
src/cmd/dist/windows.c