From 1eb81d2da53725c9c1877e3d7806bc2eb0bb626f Mon Sep 17 00:00:00 2001 From: Stein Ivar Berghei Date: Fri, 31 Mar 2023 00:37:59 +0200 Subject: [PATCH] Handle if getting cookies errors for some reason.. --- routes.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routes.go b/routes.go index 433d12c..d00144c 100644 --- a/routes.go +++ b/routes.go @@ -182,6 +182,9 @@ func auth(n httprouter.Handle) httprouter.Handle { } else if err == http.ErrNoCookie { gothic.BeginAuthHandler(w, r) return + } else if err != nil { + fmt.Fprintln(w, err) + return } } }