forked from TrueCloudLab/restic
build.go: make sure to exit 1 on error
This commit is contained in:
parent
5d51c8ffcd
commit
10232155ef
1 changed files with 2 additions and 3 deletions
5
build.go
5
build.go
|
@ -319,8 +319,7 @@ func main() {
|
||||||
|
|
||||||
err = build(gopath, args...)
|
err = build(gopath, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "build failed: %v\n", err)
|
die("build failed: %v\n", err)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if runTests {
|
if runTests {
|
||||||
|
@ -328,7 +327,7 @@ func main() {
|
||||||
|
|
||||||
err = test(gopath, "github.com/restic/restic/...")
|
err = test(gopath, "github.com/restic/restic/...")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "build failed: %v\n", err)
|
die("running tests failed: %v\n", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue