Skip to content

Commit 70e8299

Browse files
authored
crypto: print an error message if the password input failed (#5739)
1 parent e45feae commit 70e8299

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ Buffers for state serialization instead of Amino.
152152
* Add `tx.maxheight` key to filter transaction with an inclusive maximum block height
153153
* (server) [\#5709](https://github.com/cosmos/cosmos-sdk/pull/5709) There are two new flags for pruning, `--pruning-keep-every`
154154
and `--pruning-snapshot-every` as an alternative to `--pruning`. They allow to fine tune the strategy for pruning the state.
155+
* (crypto/keys) [\#5739](https://github.com/cosmos/cosmos-sdk/pull/5739) Print an error message if the password input failed.
155156

156157
## [v0.38.1] - 2020-02-11
157158

crypto/keys/keyring.go

+1
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ func newRealPrompt(dir string, buf io.Reader) func(string) (string, error) {
546546
buf := bufio.NewReader(buf)
547547
pass, err := input.GetPassword("Enter keyring passphrase:", buf)
548548
if err != nil {
549+
fmt.Fprintln(os.Stderr, err)
549550
continue
550551
}
551552

0 commit comments

Comments
 (0)