mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-29 00:19:14 +08:00
Fix typo
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user