]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: Make windows.c's fatal() print to stderr
authorPieter Droogendijk <pieter@binky.org.uk>
Sat, 30 Jun 2012 14:27:05 +0000 (00:27 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Sat, 30 Jun 2012 14:27:05 +0000 (00:27 +1000)
commit735780c27ee72a4a2cdfac306118cf015d922c93
tree73b380a26e91b08b28916219711aadbfcc043013
parentc644a4ddfe9afe8ab79a6d3c776117cdb11dd2b7
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