mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-28 03:25:55 +08:00
docs: fix indentation
This commit is contained in:
@ -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);
|
||||
});
|
||||
```
|
||||
</details>
|
||||
|
||||
@ -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);
|
||||
});
|
||||
```
|
||||
</details>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user