update return error

This commit is contained in:
Frank 2020-12-25 16:32:21 +08:00
parent df973da748
commit 6b9daa4d14

View File

@ -6,7 +6,6 @@ import (
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"fmt" "fmt"
"golang.org/x/xerrors"
"reflect" "reflect"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
@ -161,7 +160,7 @@ var sendCmd = &cli.Command{
if fromBalance.LessThan(totalCost) { if fromBalance.LessThan(totalCost) {
fmt.Printf("From balance %s attoFIL less than total cost %s attoFIL\n", fromBalance, totalCost) fmt.Printf("From balance %s attoFIL less than total cost %s attoFIL\n", fromBalance, totalCost)
if !cctx.Bool("really-do-it") { if !cctx.Bool("really-do-it") {
return xerrors.Errorf("--really-do-it must be specified for this action to have an effect; " + return fmt.Errorf("--really-do-it must be specified for this action to have an effect; " +
"you have been warned") "you have been warned")
} }
} }