Change Wrapf of non-error to an actual error
Signed-off-by: Phil Estes <estesp@amazon.com>
This commit is contained in:
parent
a93b5cbc2f
commit
edfd8d5993
@ -500,7 +500,7 @@ func (s *store) resumeStatus(ref string, total int64, digester digest.Digester)
|
|||||||
if ref != status.Ref {
|
if ref != status.Ref {
|
||||||
// NOTE(stevvooe): This is fairly catastrophic. Either we have some
|
// NOTE(stevvooe): This is fairly catastrophic. Either we have some
|
||||||
// layout corruption or a hash collision for the ref key.
|
// layout corruption or a hash collision for the ref key.
|
||||||
return status, errors.Wrapf(err, "ref key does not match: %v != %v", ref, status.Ref)
|
return status, errors.Errorf("ref key does not match: %v != %v", ref, status.Ref)
|
||||||
}
|
}
|
||||||
|
|
||||||
if total > 0 && status.Total > 0 && total != status.Total {
|
if total > 0 && status.Total > 0 && total != status.Total {
|
||||||
|
Loading…
Reference in New Issue
Block a user