From 0bc8cba0a4c9ca85b618a7f4adea28a07929cf47 Mon Sep 17 00:00:00 2001
From: umbynos <umberto.baldi@edu.unito.it>
Date: Mon, 18 Jan 2021 19:00:59 +0100
Subject: [PATCH] Log error, if certificate is not found

Close #78
---
 main.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main.go b/main.go
index 231f5dc48..7b996748c 100755
--- a/main.go
+++ b/main.go
@@ -369,6 +369,7 @@ func loop() {
 	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
 		}