Skip to content

Commit

Permalink
cmd/age-keygen: actually exit on errorf (#383)
Browse files Browse the repository at this point in the history
Co-authored-by: Arnau Diaz <arnau.diaz@adevinta.com>
  • Loading branch information
vrnvu and Arnau Diaz authored Jan 4, 2022
1 parent e4ae4cf commit 4169274
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/age-keygen/keygen.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func convert(in io.Reader, out io.Writer) {

func errorf(format string, v ...interface{}) {
log.Printf("age-keygen: error: "+format, v...)
log.Fatalf("age-keygen: report unexpected or unhelpful errors at https://filippo.io/age/report")
}

func warning(msg string) {
Expand Down

0 comments on commit 4169274

Please sign in to comment.