From 2b078c7944da5db22298c4bcc229ad36e88ab2e2 Mon Sep 17 00:00:00 2001 From: LexLuthr Date: Fri, 17 May 2024 16:56:08 +0530 Subject: [PATCH] fix non existing sector --- cli/spcli/sectors.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/spcli/sectors.go b/cli/spcli/sectors.go index 95acbcd111e..ee338932c1f 100644 --- a/cli/spcli/sectors.go +++ b/cli/spcli/sectors.go @@ -159,6 +159,11 @@ func SectorsStatusCmd(getActorAddress ActorAddressGetter, getOnDiskInfo OnDiskIn return err } + if status == nil { + fmt.Println("Sector status not found on chain") + return nil + } + mid, err := address.IDFromAddress(maddr) if err != nil { return err