Pass unhandled rejections to main error handler
This commit is contained in:
parent
b95f83985e
commit
5a1926439b
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ if (process.env.NODE_ENV === "production") {
|
|||
};
|
||||
|
||||
process.on("uncaughtException", errorHandler);
|
||||
process.on("unhandledRejection", errorHandler);
|
||||
}
|
||||
|
||||
// Verify required Node.js version
|
||||
|
|
Loading…
Add table
Reference in a new issue