From 156fb17dad853879e1fffa502f56f772082d170f Mon Sep 17 00:00:00 2001 From: zenground0 Date: Wed, 20 Jul 2022 09:27:34 -0700 Subject: [PATCH] Review Response --- cmd/lotus-shed/address.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-shed/address.go b/cmd/lotus-shed/address.go index 646d1d794..bf023f7b0 100644 --- a/cmd/lotus-shed/address.go +++ b/cmd/lotus-shed/address.go @@ -6,6 +6,7 @@ import ( "fmt" "github.com/urfave/cli/v2" + "golang.org/x/xerrors" "github.com/filecoin-project/go-address" ) @@ -32,7 +33,7 @@ var addressCmd = &cli.Command{ // next try raw payload a, err = address.NewFromBytes(bs) if err != nil { - return err + return xerrors.New("could not decode as CBOR or raw payload, failing") } fmt.Printf("%s\n", a) return nil