mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-30 00:57:04 +08:00
Fix typo
This commit is contained in:
@ -28,7 +28,7 @@ catch (error) {
|
|||||||
next(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) {
|
app.use(function (err, req, res, next) {
|
||||||
errorHandler.handleError(err).then((isOperationalError) => {
|
errorHandler.handleError(err).then((isOperationalError) => {
|
||||||
if (!isOperationalError)
|
if (!isOperationalError)
|
||||||
|
|||||||
Reference in New Issue
Block a user