Added log messages for a few errors

This commit is contained in:
Caleb J. Gardner
2025-09-05 03:27:13 -05:00
parent 3e1078efec
commit 243fa03af0
6 changed files with 11 additions and 2 deletions
+1
View File
@@ -301,6 +301,7 @@ func (b *Backend) login(w http.ResponseWriter, r *http.Request) {
if err == nil {
ret.Token, err = b.GenerateJWT(u.ToReqUser())
if err != nil {
log.Println("error generating JWT token:", err)
ReturnError(w, http.StatusInternalServerError, "internal", "Server error")
return
}