X Tutup
Skip to content

Commit edfd8d5

Browse files
committed
Change Wrapf of non-error to an actual error
Signed-off-by: Phil Estes <estesp@amazon.com>
1 parent a93b5cb commit edfd8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
X Tutup