Fix missing error log

This commit is contained in:
ekzyis 2023-09-09 22:52:50 +02:00
parent 162f54b934
commit dabb1be2f0
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ func sessionHandler(next echo.HandlerFunc) echo.HandlerFunc {
}
c.Set("session", Session{pubkey})
} else if err != sql.ErrNoRows {
c.Logger().Error(err)
return c.JSON(http.StatusInternalServerError, map[string]string{"status": "ERROR", "reason": "internal server error"})
}
return next(c)