hiteshchoudhary / chai-backend

A video series on chai aur code youtube channel
5.34k stars 803 forks source link

Added error handling middleware in app.js to handle error thrown by `… #104

Closed HarshGaur387R closed 7 months ago

HarshGaur387R commented 7 months ago

Added error handling middleware in app.js to handle error thrown by asyncHandler in ApiError 's Object. The middleware responsible for error handling is conspicuously absent from both the tutorial and the source code. Despite its critical role, this component remains unaddressed. I have resolved this issue by adding error handling middleware in app.js file.