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:
Chaos
2025-11-24 17:21:52 +08:00
parent ed542f108c
commit d4ace86fb3

View File

@@ -30,6 +30,7 @@ export const actions:Actions = {
return {success:true};
}catch ( error){
if (error instanceof HttpError){
console.log(JSON.stringify(error));
return fail(400, {message:error.details.msg});
}
}