summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-19 18:22:01 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-19 18:22:01 -0500
commit77b1df76882982016709b4d65ced0cf5673492e8 (patch)
tree4fd52d0484f85207fda00bec7095270553db6602
parent6895534e0d59eae1b66a080dd390be7ee9c7db0b (diff)
fix handleBool
-rw-r--r--crtsh-pem2html.go1
-rw-r--r--tls-pem2html.go1
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)
}
}