cmd/clef: revert error string

This commit is contained in:
trillom8 2024-05-26 22:38:23 +09:00
parent fec649a07a
commit 4af88702dc
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ func TestImportRaw(t *testing.T) {
// Run clef importraw
clef := runClef(t, "--suppress-bootwarn", "--lightkdf", "importraw", keyPath)
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)
}
})

View file

@ -583,7 +583,7 @@ func accountImport(c *cli.Context) error {
}
if first != second {
//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)
if err != nil {