Commit 104d0246 authored by Rob Pike's avatar Rob Pike

fix gobuild bug

R=rsc
DELTA=4  (3 added, 0 deleted, 1 changed)
OCL=30845
CL=30845
parent b2871b72
......@@ -63,7 +63,8 @@ func init() {
for i, v := range binaries {
var s string;
if s, err := exec.LookPath(v); err != nil {
var err os.Error;
if s, err = exec.LookPath(v); err != nil {
fatal("cannot find binary %s", v);
}
bin[v] = s;
......@@ -101,6 +102,7 @@ func run(argv []string, flag int) (ok bool) {
defer r.Close();
w.Close();
if err != nil {
fmt.Fprintln(os.Stderr, err);
return false;
}
......@@ -123,6 +125,7 @@ func run(argv []string, flag int) (ok bool) {
}
waitmsg, err := os.Wait(pid, 0);
if err != nil {
fmt.Fprintln(os.Stderr, err);
return false;
}
return waitmsg.Exited() && waitmsg.ExitStatus() == 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment