From a57c527114d3dde5c53eb77be1329d30abb2c5d6 Mon Sep 17 00:00:00 2001 From: trillom8 Date: Sun, 26 May 2024 16:28:54 +0900 Subject: [PATCH] cmd/clef: fix error string format --- cmd/clef/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/clef/main.go b/cmd/clef/main.go index f9b00e4a12..18338c5691 100644 --- a/cmd/clef/main.go +++ b/cmd/clef/main.go @@ -552,7 +552,7 @@ func listWallets(c *cli.Context) error { // accountImport imports a raw hexadecimal private key via CLI. func accountImport(c *cli.Context) error { if c.Args().Len() != 1 { - return errors.New(" must be given as first argument.") + return errors.New(" must be given as first argument") } internalApi, ui, err := initInternalApi(c) if err != nil { @@ -583,7 +583,7 @@ func accountImport(c *cli.Context) error { } if first != second { //lint:ignore ST1005 This is a message for the user - return errors.New("Passwords do not match") + return errors.New("passwords do not match") } acc, err := internalApi.ImportRawKey(hex.EncodeToString(crypto.FromECDSA(pKey)), first) if err != nil {