Review Response

This commit is contained in:
zenground0 2022-07-20 09:27:34 -07:00 committed by ZenGround0
parent 316d35f015
commit 156fb17dad

View File

@ -6,6 +6,7 @@ import (
"fmt" "fmt"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"golang.org/x/xerrors"
"github.com/filecoin-project/go-address" "github.com/filecoin-project/go-address"
) )
@ -32,7 +33,7 @@ var addressCmd = &cli.Command{
// next try raw payload // next try raw payload
a, err = address.NewFromBytes(bs) a, err = address.NewFromBytes(bs)
if err != nil { if err != nil {
return err return xerrors.New("could not decode as CBOR or raw payload, failing")
} }
fmt.Printf("%s\n", a) fmt.Printf("%s\n", a)
return nil return nil