From 6b9daa4d1459d53aa2abc421be697d739651929b Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 25 Dec 2020 16:32:21 +0800 Subject: [PATCH] update return error --- cli/send.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/send.go b/cli/send.go index 842862180..965d2c9f9 100644 --- a/cli/send.go +++ b/cli/send.go @@ -6,7 +6,6 @@ import ( "encoding/hex" "encoding/json" "fmt" - "golang.org/x/xerrors" "reflect" "github.com/urfave/cli/v2" @@ -161,7 +160,7 @@ var sendCmd = &cli.Command{ if fromBalance.LessThan(totalCost) { fmt.Printf("From balance %s attoFIL less than total cost %s attoFIL\n", fromBalance, totalCost) 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") } }