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 }