From 079b1f0ffa37d40c5e46698330ee41753bb4288b Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Tue, 4 Dec 2018 16:23:10 +0000 Subject: [PATCH] Merge PR #2994: Change wrong password message * change wrong password message Closes: #2993 * Update PENDING.md --- PENDING.md | 2 ++ crypto/keys/keyerror/errors.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/PENDING.md b/PENDING.md index 6891c075da..33c265195b 100644 --- a/PENDING.md +++ b/PENDING.md @@ -11,6 +11,8 @@ BREAKING CHANGES * Gaia - [#128](https://github.com/tendermint/devops/issues/128) Updated CircleCI job to trigger website build on every push to master/develop. + - [\#2994](https://github.com/cosmos/cosmos-sdk/pull/2994) Change wrong-password error message. + * SDK - [auth] \#2952 Signatures are no longer serialized on chain with the account number and sequence number diff --git a/crypto/keys/keyerror/errors.go b/crypto/keys/keyerror/errors.go index 1042689e38..5b3a9a7b1f 100644 --- a/crypto/keys/keyerror/errors.go +++ b/crypto/keys/keyerror/errors.go @@ -57,7 +57,7 @@ func (e errWrongPassword) Code() int { } func (e errWrongPassword) Error() string { - return fmt.Sprintf("Ciphertext decryption failed") + return "invalid account password" } // NewErrWrongPassword returns a standardized error reflecting that the specified password is wrong