cleanup error output (#1965)

This commit is contained in:
Rafael Weinstein
2016-07-05 14:03:56 -07:00
committed by GitHub
parent b0ab909e4f
commit 02be382799
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -186,7 +186,9 @@ func (lvs *ValueStore) checkChunksInCache(v Value, readValues bool) Hints {
reachableV = lvs.ReadValue(targetHash)
entry = lvs.check(targetHash)
}
d.PanicIfTrue(reachableV == nil, "Attempted to write Value containing Ref to non-existent object.", "%s\n, contains ref %s, which points to a non-existent Value.", EncodedValueWithTags(v), reachable.TargetHash())
if reachableV == nil {
d.Chk.Fail("Attempted to write Value containing Ref to non-existent object.", "%s\n, contains ref %s, which points to a non-existent Value.", v.Hash(), reachable.TargetHash())
}
}
if hint := entry.Hint(); !hint.IsEmpty() {
hints[hint] = struct{}{}