aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-10-10 18:58:04 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-10-10 18:59:23 +0200
commit4906c3219237ca3a4433017cb7e22e038db3664c (patch)
tree0a32bbda3a75c0741136b3487ca14ab16d98dda8 /pkg
parent0dbd9145b9ac62b34319bcafe6ce3b6e71d38307 (diff)
pkg/ipc: extend error when fail to start executor
We currently return raw error, so sometimes it's hard to tell even what call produced the error (e.g. just "invalid argument"). Extend the error so that it's clear that it comes from cmd.Start.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/ipc/ipc_simple.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ipc/ipc_simple.go b/pkg/ipc/ipc_simple.go
index a870001e7..1aa9c07a5 100644
--- a/pkg/ipc/ipc_simple.go
+++ b/pkg/ipc/ipc_simple.go
@@ -92,7 +92,7 @@ func (env *Env) Exec(opts *ExecOpts, p *prog.Prog) (output []byte, info []CallIn
cmd.Stderr = os.Stdout
}
if err := cmd.Start(); err != nil {
- err0 = err
+ err0 = fmt.Errorf("failed to start %d/%+v: %v", dir, env.bin, err)
return
}
done := make(chan error)