Descriptionexec: introduce ExitError
The existing code uses *os.Waitmsg as an os.Error,
but *os.Waitmsg is really just a stringer.
Introduce an explicit error type for the real error.
Not to be submitted until just before error goes in;
the gofix for error updates type assertions
err.(*os.Waitmsg)
to
err.(*exec.ExitError)
The seemingly redundant String method will become
an Error method when error goes in, and will no longer
be redundant.
Patch Set 1 #Patch Set 2 : diff -r eb6fbf796acc https://go.googlecode.com/hg #Patch Set 3 : diff -r eb6fbf796acc https://go.googlecode.com/hg #Patch Set 4 : diff -r b950f41f4326 https://go.googlecode.com/hg #Patch Set 5 : diff -r a14fbb7af4fc https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|