Permalink
Browse files

propagate go tool failure

  • Loading branch information...
1 parent 30826f9 commit 4f49d91f623c95ef43b9f493801c172dd62cbbdb Brendan Cully committed Mar 2, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 main.go
View
@@ -49,7 +49,11 @@ func main() {
}
cmd := exec.Command("go", args...)
- out, _ := cmd.CombinedOutput()
+ out, err := cmd.CombinedOutput()
fmt.Print(string(out))
+
+ if err != nil {
+ os.Exit(1)
+ }
}

0 comments on commit 4f49d91

Please sign in to comment.