Pass unhandled rejections to main error handler

This commit is contained in:
Dragory 2020-12-18 05:07:55 +02:00
parent b95f83985e
commit 5a1926439b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -107,6 +107,7 @@ if (process.env.NODE_ENV === "production") {
};
process.on("uncaughtException", errorHandler);
process.on("unhandledRejection", errorHandler);
}
// Verify required Node.js version