From 75b80bc16a80d9318efbf0a36aeb22efe434be0f Mon Sep 17 00:00:00 2001 From: Hlib Date: Mon, 7 Sep 2020 23:48:29 +0300 Subject: [PATCH] sector-storage: fix error check --- extern/sector-storage/ffiwrapper/sealer_cgo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/sector-storage/ffiwrapper/sealer_cgo.go b/extern/sector-storage/ffiwrapper/sealer_cgo.go index d4f796dcb83..87598e8516a 100644 --- a/extern/sector-storage/ffiwrapper/sealer_cgo.go +++ b/extern/sector-storage/ffiwrapper/sealer_cgo.go @@ -546,7 +546,7 @@ func (sb *Sealer) FinalizeSector(ctx context.Context, sector abi.SectorID, keepU defer done() pf, err := openPartialFile(maxPieceSize, paths.Unsealed) - if xerrors.Is(err, os.ErrNotExist) { + if err != nil { return xerrors.Errorf("opening partial file: %w", err) }