2
2
mirror of https://github.com/octoleo/restic.git synced 2024-10-31 19:02:32 +00:00

build.go: make sure to exit 1 on error

This commit is contained in:
Alexander Neumann 2015-08-19 21:40:36 +02:00
parent 5d51c8ffcd
commit 10232155ef

View File

@ -319,8 +319,7 @@ func main() {
err = build(gopath, args...)
if err != nil {
fmt.Fprintf(os.Stderr, "build failed: %v\n", err)
return
die("build failed: %v\n", err)
}
if runTests {
@ -328,7 +327,7 @@ func main() {
err = test(gopath, "github.com/restic/restic/...")
if err != nil {
fmt.Fprintf(os.Stderr, "build failed: %v\n", err)
die("running tests failed: %v\n", err)
}
}
}