diff options
author | Felix Lange <fjl@twurst.com> | 2016-04-02 04:41:47 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-04-12 21:58:07 +0800 |
commit | 6f1ca0bc910b65b517277f72ca52dadcdc713570 (patch) | |
tree | 11cd425e341f6952a0142fa0abbb9445ea917b7d /cmd | |
parent | a9f26dcd0d14c0cb9f309ebccf81e8f741fc4636 (diff) | |
download | go-tangerine-6f1ca0bc910b65b517277f72ca52dadcdc713570.tar.gz go-tangerine-6f1ca0bc910b65b517277f72ca52dadcdc713570.tar.zst go-tangerine-6f1ca0bc910b65b517277f72ca52dadcdc713570.zip |
accounts: add ErrDecrypt
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/geth/accountcmd.go | 2 | ||||
-rw-r--r-- | cmd/geth/accountcmd_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go index 35b6b2dd8..6e8d2b7eb 100644 --- a/cmd/geth/accountcmd.go +++ b/cmd/geth/accountcmd.go @@ -263,7 +263,7 @@ func importWallet(ctx *cli.Context) { acct, err := accman.ImportPreSaleKey(keyJson, passphrase) if err != nil { - utils.Fatalf("Could not create the account: %v", err) + utils.Fatalf("%v", err) } fmt.Printf("Address: {%x}\n", acct.Address) } diff --git a/cmd/geth/accountcmd_test.go b/cmd/geth/accountcmd_test.go index 7a1bf4ea1..fa3f73843 100644 --- a/cmd/geth/accountcmd_test.go +++ b/cmd/geth/accountcmd_test.go @@ -127,7 +127,7 @@ func TestWalletImportBadPassword(t *testing.T) { geth.expect(` !! Unsupported terminal, password will be echoed. Passphrase: {{.InputLine "wrong"}} -Fatal: Could not create the account: Decryption failed: PKCS7Unpad failed after AES decryption +Fatal: could not decrypt key with given passphrase `) } |