From f0944030b7d893161c5f083add3a9c4eaccff740 Mon Sep 17 00:00:00 2001 From: simlecode Date: Wed, 30 Mar 2022 10:28:56 +0800 Subject: [PATCH] Added error checking --- extern/sector-storage/manager.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extern/sector-storage/manager.go b/extern/sector-storage/manager.go index f966b9b6b..685878c07 100644 --- a/extern/sector-storage/manager.go +++ b/extern/sector-storage/manager.go @@ -693,6 +693,10 @@ func (m *Manager) FinalizeReplicaUpdate(ctx context.Context, sector storage.Sect err = multierr.Append(err, move(moveUnsealed)) } + if err != nil { + return xerrors.Errorf("moving sector to storage: %w", err) + } + return nil }