fix(auth): log http error details on login failure
- Add console logging for HTTP error details - Improve error handling in login server route - Ensure error details are properly serialized
This commit is contained in:
@@ -30,6 +30,7 @@ export const actions:Actions = {
|
|||||||
return {success:true};
|
return {success:true};
|
||||||
}catch ( error){
|
}catch ( error){
|
||||||
if (error instanceof HttpError){
|
if (error instanceof HttpError){
|
||||||
|
console.log(JSON.stringify(error));
|
||||||
return fail(400, {message:error.details.msg});
|
return fail(400, {message:error.details.msg});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user