accounts: add ErrDecrypt
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
`)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user