From 2dd90ac19ce97544c412d90a24df0f68e66311db Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 12 Feb 2017 13:55:15 +0100 Subject: readpassword: improve comment on readPasswordStdin --- internal/readpassword/read.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/readpassword/read.go b/internal/readpassword/read.go index f00b425..49cf8ef 100644 --- a/internal/readpassword/read.go +++ b/internal/readpassword/read.go @@ -66,8 +66,8 @@ func readPasswordTerminal(prompt string) string { return string(p) } -// readPasswordStdin reads a line from stdin -// Exits on read error or empty result. +// readPasswordStdin reads a line from stdin. +// It exits with a fatal error on read error or empty result. func readPasswordStdin() string { tlog.Info.Println("Reading password from stdin") p := readLineUnbuffered(os.Stdin) -- cgit v1.2.3