aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/accountcmd.go
diff options
context:
space:
mode:
authorYohann LEON <sybiload@gmail.com>2016-06-29 06:37:08 +0800
committerYohann LEON <sybiload@gmail.com>2016-06-29 19:08:32 +0800
commit6b1d73446dc3d1a2c7d9fb70dea12a5549ff47b5 (patch)
tree6da568642cda60cba1ddf5b360f8991b39fcc0cc /cmd/geth/accountcmd.go
parente0493457d5a9d280554990b5a29c4fcad69e7d0b (diff)
downloaddexon-6b1d73446dc3d1a2c7d9fb70dea12a5549ff47b5.tar
dexon-6b1d73446dc3d1a2c7d9fb70dea12a5549ff47b5.tar.gz
dexon-6b1d73446dc3d1a2c7d9fb70dea12a5549ff47b5.tar.bz2
dexon-6b1d73446dc3d1a2c7d9fb70dea12a5549ff47b5.tar.lz
dexon-6b1d73446dc3d1a2c7d9fb70dea12a5549ff47b5.tar.xz
dexon-6b1d73446dc3d1a2c7d9fb70dea12a5549ff47b5.tar.zst
dexon-6b1d73446dc3d1a2c7d9fb70dea12a5549ff47b5.zip
cmd/geth: fix the import error message
cmd/geth: include the error message on import failure
Diffstat (limited to 'cmd/geth/accountcmd.go')
-rw-r--r--cmd/geth/accountcmd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go
index 1415240eb..7fea16a25 100644
--- a/cmd/geth/accountcmd.go
+++ b/cmd/geth/accountcmd.go
@@ -316,7 +316,7 @@ func accountImport(ctx *cli.Context) error {
}
key, err := crypto.LoadECDSA(keyfile)
if err != nil {
- utils.Fatalf("keyfile must be given as argument")
+ utils.Fatalf("Failed to load the private key: %v", err)
}
accman := utils.MakeAccountManager(ctx)
passphrase := getPassPhrase("Your new account is locked with a password. Please give a password. Do not forget this password.", true, 0, utils.MakePasswordList(ctx))