feat(server): improve logs (#8977)

This commit is contained in:
darkskygit
2024-12-03 06:47:16 +00:00
parent 27d2735a64
commit eb64231899
8 changed files with 35 additions and 16 deletions

View File

@@ -5,7 +5,7 @@ import { InvalidEmail, InvalidPasswordLength } from '../../fundamentals';
export function assertValidEmail(email: string) {
const result = z.string().email().safeParse(email);
if (!result.success) {
throw new InvalidEmail();
throw new InvalidEmail({ email });
}
}