mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
cmd/clef: revert error string
This commit is contained in:
parent
fec649a07a
commit
4af88702dc
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ func TestImportRaw(t *testing.T) {
|
||||||
// Run clef importraw
|
// Run clef importraw
|
||||||
clef := runClef(t, "--suppress-bootwarn", "--lightkdf", "importraw", keyPath)
|
clef := runClef(t, "--suppress-bootwarn", "--lightkdf", "importraw", keyPath)
|
||||||
clef.input("myverylongpassword1").input("myverylongpassword2").WaitExit()
|
clef.input("myverylongpassword1").input("myverylongpassword2").WaitExit()
|
||||||
if have, want := clef.StderrText(), "passwords do not match\n"; have != want {
|
if have, want := clef.StderrText(), "Passwords do not match\n"; have != want {
|
||||||
t.Errorf("have %q, want %q", have, want)
|
t.Errorf("have %q, want %q", have, want)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -583,7 +583,7 @@ func accountImport(c *cli.Context) error {
|
||||||
}
|
}
|
||||||
if first != second {
|
if first != second {
|
||||||
//lint:ignore ST1005 This is a message for the user
|
//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)
|
acc, err := internalApi.ImportRawKey(hex.EncodeToString(crypto.FromECDSA(pKey)), first)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue