From dd8881ca624730766680197c2490ed0bfc598b08 Mon Sep 17 00:00:00 2001 From: rxdn <29165304+rxdn@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:54:32 +0000 Subject: [PATCH] Log properly --- app/http/endpoints/root/callback.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/http/endpoints/root/callback.go b/app/http/endpoints/root/callback.go index 787d0c1..dab67a3 100644 --- a/app/http/endpoints/root/callback.go +++ b/app/http/endpoints/root/callback.go @@ -80,12 +80,12 @@ func CallbackHandler(c *gin.Context) { str, err := token.SignedString([]byte(config.Conf.Server.Secret)) if err != nil { - _ = c.AbortWithError(http.StatusInternalServerError, err) + _ = c.AbortWithError(http.StatusInternalServerError, app.NewServerError(err)) return } if err := session.Store.Set(currentUser.Id, store); err != nil { - _ = c.AbortWithError(http.StatusInternalServerError, err) + _ = c.AbortWithError(http.StatusInternalServerError, app.NewServerError(err)) return }