From c740f7d98316f670b6f16955213eb60f77c1b9b1 Mon Sep 17 00:00:00 2001 From: Woz Date: Fri, 20 Dec 2019 08:28:28 +0000 Subject: [PATCH] fix: send errs to stderr (#7) --- cmd/aws-iam-authenticator-lpass/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/aws-iam-authenticator-lpass/main.go b/cmd/aws-iam-authenticator-lpass/main.go index 29e9026..61900eb 100644 --- a/cmd/aws-iam-authenticator-lpass/main.go +++ b/cmd/aws-iam-authenticator-lpass/main.go @@ -55,7 +55,7 @@ func log(msg ...interface{}) { } func errr(msg ...interface{}) { - fmt.Fprintln(os.Stdout, msg...) + fmt.Fprintln(os.Stderr, msg...) } func fatal(msg ...interface{}) { @@ -76,7 +76,6 @@ func main() { var entries []Entry err = dec.Decode(&entries) if err != nil { - errr("Unexpected output from lpass, perhaps multiple entries with same name? Please be more specific") fatal(string(out)) } accessKey := entries[0].Username