From 77b1df76882982016709b4d65ced0cf5673492e8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 19 Nov 2016 18:22:01 -0500 Subject: fix handleBool --- crtsh-pem2html.go | 1 + tls-pem2html.go | 1 + 2 files changed, 2 insertions(+) diff --git a/crtsh-pem2html.go b/crtsh-pem2html.go index 20953be..957e23a 100644 --- a/crtsh-pem2html.go +++ b/crtsh-pem2html.go @@ -22,6 +22,7 @@ func handleErr(err error, str string, a ...interface{}) { func handleBool(ok bool, str string, a ...interface{}) { if !ok { fmt.Fprintf(os.Stderr, str, a...) + os.Exit(1) } } diff --git a/tls-pem2html.go b/tls-pem2html.go index 2dce49a..f38ab5f 100644 --- a/tls-pem2html.go +++ b/tls-pem2html.go @@ -22,6 +22,7 @@ func handleErr(err error, str string, a ...interface{}) { func handleBool(ok bool, str string, a ...interface{}) { if !ok { fmt.Fprintf(os.Stderr, str, a...) + os.Exit(1) } } -- cgit v1.1-4-g5e80