diff options
-rw-r--r-- | crtsh-pem2html.go | 1 | ||||
-rw-r--r-- | tls-pem2html.go | 1 |
2 files changed, 2 insertions, 0 deletions
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) } } |