From 56df916afb1ec65af48113a34399c62caf58245f Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Mon, 11 Mar 2019 22:00:46 +0100
Subject: [PATCH] Attempt to fix error handling

---
 main.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.go b/main.go
index 60625a0..29f18af 100644
--- a/main.go
+++ b/main.go
@@ -136,7 +136,7 @@ func errorHandler(errorFilesPath string) func(http.ResponseWriter, *http.Request
 			if _, err := os.Stat(file); os.IsNotExist(err) {
 				scode := strconv.Itoa(code)
 				filePath = fmt.Sprintf("%v/%cxx%v", errorFilesPath, scode[0], ext)
-				if _, err := os.Stat(file); os.IsExist(err) {
+				if _, err := os.Stat(file); os.IsNotExist(err) {
 					continue
 				}
 			}
-- 
GitLab