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": {
|
"actions": {
|
||||||
"source": {
|
"source": {
|
||||||
"organizeImports": "on",
|
"organizeImports": "on",
|
||||||
"useSortedAttributes": "on",
|
"useSortedAttributes": "on"
|
||||||
"useSortedKeys": "on"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"enabled": true
|
"enabled": true
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue