Added error checking

This commit is contained in:
simlecode 2022-03-30 10:28:56 +08:00
parent 7eb7edb950
commit f0944030b7

View File

@ -693,6 +693,10 @@ func (m *Manager) FinalizeReplicaUpdate(ctx context.Context, sector storage.Sect
err = multierr.Append(err, move(moveUnsealed)) err = multierr.Append(err, move(moveUnsealed))
} }
if err != nil {
return xerrors.Errorf("moving sector to storage: %w", err)
}
return nil return nil
} }