Log properly

This commit is contained in:
rxdn 2024-11-13 22:54:32 +00:00
parent 28f1829d0c
commit dd8881ca62

View File

@ -80,12 +80,12 @@ func CallbackHandler(c *gin.Context) {
str, err := token.SignedString([]byte(config.Conf.Server.Secret)) str, err := token.SignedString([]byte(config.Conf.Server.Secret))
if err != nil { if err != nil {
_ = c.AbortWithError(http.StatusInternalServerError, err) _ = c.AbortWithError(http.StatusInternalServerError, app.NewServerError(err))
return return
} }
if err := session.Store.Set(currentUser.Id, store); err != nil { if err := session.Store.Set(currentUser.Id, store); err != nil {
_ = c.AbortWithError(http.StatusInternalServerError, err) _ = c.AbortWithError(http.StatusInternalServerError, app.NewServerError(err))
return return
} }