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 => {
|
process.on("uncaughtException", error => {
|
||||||
errorHandler.handleError(error);
|
errorHandler.handleError(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on("unhandledRejection", (reason) => {
|
process.on("unhandledRejection", (reason) => {
|
||||||
errorHandler.handleError(reason);
|
errorHandler.handleError(reason);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@ -72,11 +72,11 @@ await errorHandler.handleError(err, res);
|
|||||||
|
|
||||||
process.on("uncaughtException", (error:Error) => {
|
process.on("uncaughtException", (error:Error) => {
|
||||||
errorHandler.handleError(error);
|
errorHandler.handleError(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on("unhandledRejection", (reason) => {
|
process.on("unhandledRejection", (reason) => {
|
||||||
errorHandler.handleError(reason);
|
errorHandler.handleError(reason);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user