Skip to content

Commit

Permalink
crypto: print an error message if the password input failed (#5739)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyis authored and alexanderbez committed Mar 24, 2020
1 parent cec45d8 commit 91dd808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [v0.38.2] - TBD

### Improvements

* (crypto/keys) [\#5739](https://github.com/cosmos/cosmos-sdk/pull/5739) Print an error message if the password input failed.

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

### Improvements
Expand Down
1 change: 1 addition & 0 deletions crypto/keys/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ func newRealPrompt(dir string, buf io.Reader) func(string) (string, error) {
buf := bufio.NewReader(buf)
pass, err := input.GetPassword("Enter keyring passphrase:", buf)
if err != nil {
fmt.Fprintln(os.Stderr, err)
continue
}

Expand Down

0 comments on commit 91dd808

Please sign in to comment.