From 59c063b8fef5dc103bda35c5ead605757123ccbc Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Mon, 10 Aug 2015 12:44:30 -0700 Subject: [PATCH] Update passphrase error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let the user know why passphrase wasn’t accepted. Signed-off-by: Tonis Tiigi --- pkg/passphrase/passphrase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/passphrase/passphrase.go b/pkg/passphrase/passphrase.go index e89092b891..9359e0efc0 100644 --- a/pkg/passphrase/passphrase.go +++ b/pkg/passphrase/passphrase.go @@ -150,7 +150,7 @@ func PromptRetrieverWithInOut(in io.Reader, out io.Writer, aliasMap map[string]s } 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 }