feat: add error logging for user not found in login process
This commit is contained in:
parent
733452832a
commit
08333b80b2
2 changed files with 2 additions and 2 deletions
|
|
@ -4,8 +4,7 @@
|
|||
"actions": {
|
||||
"source": {
|
||||
"organizeImports": "on",
|
||||
"useSortedAttributes": "on",
|
||||
"useSortedKeys": "on"
|
||||
"useSortedAttributes": "on"
|
||||
}
|
||||
},
|
||||
"enabled": true
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue