fix non existing sector (#12012)

This commit is contained in:
LexLuthr 2024-05-17 19:38:37 +05:30 committed by GitHub
parent 6dc4ebd2ad
commit bedd69602c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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