Update passphrase error message

Let the user know why passphrase wasn’t accepted.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2015-08-10 12:44:30 -07:00
parent 52b064b6a6
commit 59c063b8fe
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ func PromptRetrieverWithInOut(in io.Reader, out io.Writer, aliasMap map[string]s
} }
if len(retPass) < 8 { if len(retPass) < 8 {
fmt.Fprintln(out, "Please use a password manager to generate and store a good random passphrase.") fmt.Fprintln(out, "Passphrase is too short. Please use a password manager to generate and store a good random passphrase.")
return "", false, ErrTooShort return "", false, ErrTooShort
} }