From 31b4a98165dc4a3fe98ade53f50ffdce7131bdf8 Mon Sep 17 00:00:00 2001
From: Hanno Braun <hb@hannobraun.de>
Date: Wed, 31 Jan 2018 07:20:55 +0100
Subject: [PATCH] Log error, if certificate is not found

Close #78

Signed-off-by: Hanno Braun <hb@hannobraun.de>
---
 main.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main.go b/main.go
index 58a3c359b..f5860537f 100755
--- a/main.go
+++ b/main.go
@@ -238,6 +238,7 @@ func main() {
 			go func() {
 				// check if certificates exist; if not, use plain http
 				if _, err := os.Stat(filepath.Join(dest, "cert.pem")); os.IsNotExist(err) {
+					log.Error("Could not find HTTPS certificate. Using plain HTTP only.")
 					return
 				}