Skip to content
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

refactor: Added global error handler + catchAsync #138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PorePranav
Copy link
Contributor

@PorePranav PorePranav commented Oct 16, 2024

This PR refactors backend error handling by introducing a catchAsync utility, an AppError class, and a global error handling middleware. These changes improve code readability, maintainability, and consistency in managing errors across the application. Please review and merge if approved.

closes #134

Copy link

vercel bot commented Oct 16, 2024

@PorePranav is attempting to deploy a commit to the Vishal Kumar 's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vishalverma9572
Copy link
Owner

@PorePranav, Have you tested every route and verified it with the frontend?

@PorePranav
Copy link
Contributor Author

@PorePranav, Have you tested every route and verified it with the frontend?

yeah, everything seems to work well, no issues!
Its only a refactor, no logic/ code has been changed

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
quiz-master-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 8:39pm
quiz-master-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 8:39pm

@PorePranav
Copy link
Contributor Author

Any update on the status of the PR? @vishalverma9572

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue: Refactor Backend to Implement catchAsync and Improve Error Handling
2 participants