From aea9c535e0e0980aaee79db6c6baac7b0df4cf3e Mon Sep 17 00:00:00 2001 From: Jennifer Wang Date: Thu, 22 Sep 2022 13:12:12 -0400 Subject: [PATCH] fix typo, add wrapper on error and make jen --- cmd/lotus-shed/msig.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cmd/lotus-shed/msig.go b/cmd/lotus-shed/msig.go index b5cc9fea2..66e4885c3 100644 --- a/cmd/lotus-shed/msig.go +++ b/cmd/lotus-shed/msig.go @@ -6,22 +6,21 @@ import ( "fmt" "io" - "github.com/filecoin-project/lotus/chain/actors/builtin" - "github.com/filecoin-project/lotus/chain/actors/builtin/multisig" - - "github.com/filecoin-project/lotus/chain/actors/adt" - "github.com/filecoin-project/lotus/chain/consensus/filcns" - "github.com/filecoin-project/lotus/chain/state" - "github.com/filecoin-project/lotus/chain/store" - "github.com/filecoin-project/lotus/node/repo" - cbor "github.com/ipfs/go-ipld-cbor" - "github.com/ipfs/go-cid" + cbor "github.com/ipfs/go-ipld-cbor" "github.com/urfave/cli/v2" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" + + "github.com/filecoin-project/lotus/chain/actors/adt" + "github.com/filecoin-project/lotus/chain/actors/builtin" + "github.com/filecoin-project/lotus/chain/actors/builtin/multisig" + "github.com/filecoin-project/lotus/chain/consensus/filcns" + "github.com/filecoin-project/lotus/chain/state" + "github.com/filecoin-project/lotus/chain/store" "github.com/filecoin-project/lotus/chain/types" + "github.com/filecoin-project/lotus/node/repo" ) type msigBriefInfo struct { @@ -40,7 +39,7 @@ var msigCmd = &cli.Command{ var multisigGetAllCmd = &cli.Command{ Name: "all", - Usage: "get all multisig actor on chain with id, siigners, threshold and balance at a tipset", + Usage: "get all multisig actor on chain with id, signers, threshold and balance at a tipset", ArgsUsage: "[state root]", Flags: []cli.Flag{ &cli.StringFlag{ @@ -105,7 +104,8 @@ var multisigGetAllCmd = &cli.Command{ if builtin.IsMultisigActor(act.Code) { ms, err := multisig.Load(store, act) if err != nil { - return err + return fmt.Errorf("load msig failed %v", err) + } signers, _ := ms.Signers()