mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
detailed build errors
This commit is contained in:
parent
e8a4a513d2
commit
0b320f2d2c
@ -3,7 +3,7 @@
|
||||
package build
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
@ -89,7 +89,7 @@ func run(target buildTarget, command []string) error {
|
||||
"GOARM="+target.goarm,
|
||||
)
|
||||
if out, err := cmd.CombinedOutput(); err != nil {
|
||||
return errors.New(string(out))
|
||||
return fmt.Errorf("build failed: %v\n%v", target, string(out))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user