From fe93237158fa503549a54a33503dc5d67bdbe49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6nig?= Date: Thu, 11 Mar 2021 08:44:49 +0100 Subject: [PATCH] docs: fix indentation --- sections/errorhandling/centralizedhandling.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sections/errorhandling/centralizedhandling.md b/sections/errorhandling/centralizedhandling.md index d674b72e..b0574743 100644 --- a/sections/errorhandling/centralizedhandling.md +++ b/sections/errorhandling/centralizedhandling.md @@ -35,11 +35,11 @@ app.use(async (err, req, res, next) => { process.on("uncaughtException", error => { errorHandler.handleError(error); - }); +}); - process.on("unhandledRejection", (reason) => { - errorHandler.handleError(reason); - }); +process.on("unhandledRejection", (reason) => { + errorHandler.handleError(reason); +}); ``` @@ -72,11 +72,11 @@ await errorHandler.handleError(err, res); process.on("uncaughtException", (error:Error) => { errorHandler.handleError(error); - }); +}); - process.on("unhandledRejection", (reason) => { - errorHandler.handleError(reason); - }); +process.on("unhandledRejection", (reason) => { + errorHandler.handleError(reason); +}); ```