Don't lose Compare failure if aborting diff upload fails
Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
This commit is contained in:
parent
6636e36182
commit
b399e2ef6d
@ -99,8 +99,8 @@ func (s *walkingDiff) Compare(ctx context.Context, lower, upper []mount.Mount, o
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
cw.Close()
|
cw.Close()
|
||||||
if newReference {
|
if newReference {
|
||||||
if err := s.store.Abort(ctx, config.Reference); err != nil {
|
if abortErr := s.store.Abort(ctx, config.Reference); abortErr != nil {
|
||||||
log.G(ctx).WithField("ref", config.Reference).Warnf("failed to delete diff upload")
|
log.G(ctx).WithError(abortErr).WithField("ref", config.Reference).Warnf("failed to delete diff upload")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user