This makes the last error-reporting CL a bit less
aggressive. errPrintedOutput is a sentinel value
that should not be wrapped.
R=gri
CC=golang-dev
https://golang.org/cl/
5845052
// build is the action for building a single package or command.
func (b *builder) build(a *action) (err error) {
defer func() {
- if err != nil {
+ if err != nil && err != errPrintedOutput {
err = fmt.Errorf("go build %s: %v", a.p.ImportPath, err)
}
}()
// install is the action for installing a single package or executable.
func (b *builder) install(a *action) (err error) {
defer func() {
- if err != nil {
+ if err != nil && err != errPrintedOutput {
err = fmt.Errorf("go install %s: %v", a.p.ImportPath, err)
}
}()