diff --git a/cli/send.go b/cli/send.go index a5200d3b8..9a8ebc25e 100644 --- a/cli/send.go +++ b/cli/send.go @@ -3,6 +3,7 @@ package cli import ( "encoding/hex" "fmt" + "strings" "github.com/urfave/cli/v2" "golang.org/x/xerrors" @@ -152,7 +153,11 @@ var sendCmd = &cli.Command{ sm, err := InteractiveSend(ctx, cctx, srv, proto) if err != nil { - return err + if strings.Contains(err.Error(), "no current EF") { + return xerrors.Errorf("transaction rejected on ledger: %w", err) + } else { + return err + } } fmt.Fprintf(cctx.App.Writer, "%s\n", sm.Cid())