DEV Community

Sadiqur Rahman
Sadiqur Rahman

Posted on

Handle errors centrally in Node.js

A very important spice to cook a healthy app, "Handle errors centrally. Not within middlewares". Here is a simple implementation that might help new developers.

Rules:
https://github.com/goldbergyoni/nodebestpractices/blob/master/sections/errorhandling/centralizedhandling.md

Implementation:
https://github.com/despider001/handle-error-centrally

Top comments (0)