Don't lose Compare failure if aborting diff upload fails
@@ -99,8 +99,8 @@ func (s *walkingDiff) Compare(ctx context.Context, lower, upper []mount.Mount, o
if err != nil {
cw.Close()
if newReference {
- if err := s.store.Abort(ctx, config.Reference); err != nil {
- log.G(ctx).WithField("ref", config.Reference).Warnf("failed to delete diff upload")
+ if abortErr := s.store.Abort(ctx, config.Reference); abortErr != nil {
+ log.G(ctx).WithError(abortErr).WithField("ref", config.Reference).Warnf("failed to delete diff upload")
}
}
}
