Skip to content

Commit

Permalink
Review Response
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Jul 20, 2022
1 parent 316d35f commit 156fb17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/lotus-shed/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"

"github.com/urfave/cli/v2"
"golang.org/x/xerrors"

"github.com/filecoin-project/go-address"
)
Expand All @@ -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
Expand Down

0 comments on commit 156fb17

Please sign in to comment.