vishalverma9572 / QuizMaster

QuizMaster is a comprehensive quiz application that allows users to create, take, and manage quizzes. The project is built using Node.js, Express, MongoDB for the backend, and React for the frontend. It provides features such as user authentication, quiz management, progress tracking, and viewing detailed quiz statistics.
https://quiz-master-frontend-jet.vercel.app/
MIT License
22 stars 90 forks source link

refactor: Added global error handler + catchAsync #138

Open PorePranav opened 1 month ago

PorePranav commented 1 month ago

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

vercel[bot] commented 1 month ago

@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 commented 1 month ago

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

PorePranav commented 1 month ago

@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

vercel[bot] commented 1 month ago

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 commented 3 weeks ago

Any update on the status of the PR? @vishalverma9572