aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-11-21 17:36:59 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-11-22 15:50:31 +0100
commit7f3778fa10dc9230a87f618af1e82a5a22f8424c (patch)
tree7dbf5521d0a59e9391f9df22c519b57edc6d90a3 /ipc
parenta5761fa21b51e4eaba349777344d0fdddc504853 (diff)
ipc: extend error messages
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/ipc.go b/ipc/ipc.go
index 41d22c705..b48513eb4 100644
--- a/ipc/ipc.go
+++ b/ipc/ipc.go
@@ -223,7 +223,7 @@ func (env *Env) Exec(p *prog.Prog) (output []byte, cov [][]uint32, errnos []int,
return
}
if int(callIndex) > len(cov) {
- err0 = fmt.Errorf("failed to read output coverage: expect index %v, got %v", i, callIndex)
+ err0 = fmt.Errorf("failed to read output coverage: record %v, call %v, total calls %v", i, callIndex, len(cov))
return
}
if cov[callIndex] != nil {
@@ -238,7 +238,7 @@ func (env *Env) Exec(p *prog.Prog) (output []byte, cov [][]uint32, errnos []int,
cov1 := make([]uint32, coverSize)
for j := uint32(0); j < coverSize; j++ {
if err := binary.Read(r, binary.LittleEndian, &pc); err != nil {
- err0 = fmt.Errorf("failed to read output coverage: expect index %v, got %v", i, callIndex)
+ err0 = fmt.Errorf("failed to read output coverage: record %v, call %v, coversize=%v err=%v", i, callIndex, coverSize, err)
return
}
cov1[j] = pc