diff --git a/sections/errorhandling/centralizedhandling.md b/sections/errorhandling/centralizedhandling.md index b4a7a4dfd..155f7d3d7 100644 --- a/sections/errorhandling/centralizedhandling.md +++ b/sections/errorhandling/centralizedhandling.md @@ -28,7 +28,7 @@ catch (error) { next(error); } -//Error handling middleware, we delegate the handling to the centrzlied error handler +//Error handling middleware, we delegate the handling to the centralized error handler app.use(function (err, req, res, next) { errorHandler.handleError(err).then((isOperationalError) => { if (!isOperationalError)