feat: add error logging for user not found in login process

This commit is contained in:
Marco Pedone 2025-09-02 19:12:17 +02:00
parent 733452832a
commit 08333b80b2
2 changed files with 2 additions and 2 deletions

View file

@ -4,8 +4,7 @@
"actions": { "actions": {
"source": { "source": {
"organizeImports": "on", "organizeImports": "on",
"useSortedAttributes": "on", "useSortedAttributes": "on"
"useSortedKeys": "on"
} }
}, },
"enabled": true "enabled": true

View file

@ -107,6 +107,7 @@ export const logIn = async ({
const user = await findUser_byEmail({ email }); const user = await findUser_byEmail({ email });
if (!user) { if (!user) {
console.error("User not found in login for email:", email);
throw new TRPCError({ throw new TRPCError({
code: "NOT_FOUND", code: "NOT_FOUND",
message: "Errore in Login: Utente non trovato", message: "Errore in Login: Utente non trovato",