-
Notifications
You must be signed in to change notification settings - Fork 428
Improve email sending error handling #732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Introduced `StatusError` for improved error reporting when email sending fails. - Added a centralized error handling function to log errors and provide user-friendly messages. - Updated the email sending logic to utilize the new error handling, ensuring consistent feedback for failed email attempts. This change improves the robustness of the email sending process and enhances the developer experience by providing clearer error messages.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Enhanced email sending error handling by implementing StatusError with centralized error reporting and user-friendly messages in apps/backend/src/lib/emails.tsx
.
- Added centralized
handleError
function for consistent error reporting and logging - Implemented retry logic with improved error state tracking
- Added specific error types from
known-errors.tsx
for email-related failures - Used
StatusError
for HTTP-appropriate error responses when email sending fails
1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile
✨ No issues found! Your code is sparkling clean! ✨ 🗒️ View all ignored comments in this repo
Need help? Join our Discord for support! |
Important
Improves email sending error handling in
emails.tsx
by introducingStatusError
and a centralized error handling function for consistent and user-friendly error reporting.StatusError
for better error reporting inemails.tsx
.handleError
function insendEmail()
to log errors and throwStatusError
with a user-friendly message.sendEmail()
to usehandleError
for consistent error handling.sendEmail()
to improve code clarity and maintainability.This description was created by
for b6dad5d. You can customize this summary. It will automatically update as commits are pushed.