Skip to content

Commit 9a57390

Browse files
authored
Merge pull request #5567 from estesp/cp-5560-1.5
[release/1.5] cherry-pick: Change Wrapf of non-error to an actual error
2 parents d1119dc + 3fd01c4 commit 9a57390

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/local/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ func (s *store) resumeStatus(ref string, total int64, digester digest.Digester)
500500
if ref != status.Ref {
501501
// NOTE(stevvooe): This is fairly catastrophic. Either we have some
502502
// layout corruption or a hash collision for the ref key.
503-
return status, errors.Wrapf(err, "ref key does not match: %v != %v", ref, status.Ref)
503+
return status, errors.Errorf("ref key does not match: %v != %v", ref, status.Ref)
504504
}
505505

506506
if total > 0 && status.Total > 0 && total != status.Total {

0 commit comments

Comments
 (0)