diff --git a/chain/stmgr/forks.go b/chain/stmgr/forks.go index bcc93b70e..92dce2761 100644 --- a/chain/stmgr/forks.go +++ b/chain/stmgr/forks.go @@ -101,7 +101,7 @@ func UpgradeFaucetBurnRecovery(ctx context.Context, sm *StateManager, tree types lbtree = state return nil }); err != nil { - return xerrors.Errorf("loading state tree failed: %w") + return xerrors.Errorf("loading state tree failed: %w", err) } ReserveAddress, err := address.NewFromString("t090") diff --git a/cmd/lotus-shed/balances.go b/cmd/lotus-shed/balances.go index ae6640488..aad321783 100644 --- a/cmd/lotus-shed/balances.go +++ b/cmd/lotus-shed/balances.go @@ -224,6 +224,9 @@ var chainBalanceStateCmd = &cli.Command{ infos = append(infos, ai) return nil }) + if err != nil { + return xerrors.Errorf("failed to loop over actors: %w", err) + } if minerInfo { fmt.Printf("Address,Balance,Type,Sectors,Worker,Owner,InitialPledge,Locked,PreCommits\n")