diff --git a/cmd/lotus-shed/verifreg.go b/cmd/lotus-shed/verifreg.go index a19cb261c..9b36a4c07 100644 --- a/cmd/lotus-shed/verifreg.go +++ b/cmd/lotus-shed/verifreg.go @@ -3,7 +3,9 @@ package main import ( "bytes" "fmt" + lapi "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/build" + "golang.org/x/xerrors" "github.com/filecoin-project/go-address" "github.com/urfave/cli/v2" @@ -301,6 +303,9 @@ var verifRegCheckClientCmd = &cli.Command{ dcap, err := api.StateVerifiedClientStatus(ctx, caddr, types.EmptyTSK) if err != nil { + if err == lapi.NotFoundErr { + return xerrors.Errorf("client %s is not a verified client", err) + } return err }