Skip to content

Commit

Permalink
fix: send errs to stderr (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuart-warren committed Dec 20, 2019
1 parent 7082211 commit c740f7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/aws-iam-authenticator-lpass/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}) {
Expand All @@ -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
Expand Down

0 comments on commit c740f7d

Please sign in to comment.