mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Improve wording of error message
This commit is contained in:
parent
ae3c77b82b
commit
a66d88ea2c
2 changed files with 2 additions and 2 deletions
|
|
@ -128,7 +128,7 @@ func TestAccountImportTooShort(t *testing.T) {
|
|||
geth := runGeth(t, "account", "import", keyfile)
|
||||
defer geth.ExpectExit()
|
||||
geth.Expect(`
|
||||
Fatal: Failed to load the private key: expected 64 hexa characters, got 40
|
||||
Fatal: Failed to load the private key: expected 64 bytes, got 40
|
||||
`)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ func LoadECDSA(file string) (*ecdsa.PrivateKey, error) {
|
|||
}
|
||||
size := stat.Size()
|
||||
if size != 64 {
|
||||
return nil, fmt.Errorf("expected 64 hexa characters, got %v", size)
|
||||
return nil, fmt.Errorf("expected 64 bytes, got %v", size)
|
||||
}
|
||||
buf, err := ioutil.ReadFile(file)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue