From 08333b80b264dd19854141d2b1756cd6b3b0a86f Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Tue, 2 Sep 2025 19:12:17 +0200 Subject: [PATCH] feat: add error logging for user not found in login process --- apps/infoalloggi/biome.json | 3 +-- apps/infoalloggi/src/server/controllers/auth.controller.ts | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/infoalloggi/biome.json b/apps/infoalloggi/biome.json index 9960411..fe9f392 100644 --- a/apps/infoalloggi/biome.json +++ b/apps/infoalloggi/biome.json @@ -4,8 +4,7 @@ "actions": { "source": { "organizeImports": "on", - "useSortedAttributes": "on", - "useSortedKeys": "on" + "useSortedAttributes": "on" } }, "enabled": true diff --git a/apps/infoalloggi/src/server/controllers/auth.controller.ts b/apps/infoalloggi/src/server/controllers/auth.controller.ts index b38de42..64c3c71 100644 --- a/apps/infoalloggi/src/server/controllers/auth.controller.ts +++ b/apps/infoalloggi/src/server/controllers/auth.controller.ts @@ -107,6 +107,7 @@ export const logIn = async ({ const user = await findUser_byEmail({ email }); if (!user) { + console.error("User not found in login for email:", email); throw new TRPCError({ code: "NOT_FOUND", message: "Errore in Login: Utente non trovato",