3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-07 16:05:01 +00:00

chore: use prod error handlers in dev

This commit is contained in:
Dragory 2025-05-31 18:18:37 +00:00
parent 21374fa804
commit 6c55b98eee
No known key found for this signature in database

View file

@ -172,10 +172,8 @@ function errorHandler(err) {
// tslint:enable:no-console // tslint:enable:no-console
} }
if (process.env.NODE_ENV === "production") {
process.on("uncaughtException", errorHandler); process.on("uncaughtException", errorHandler);
process.on("unhandledRejection", errorHandler); process.on("unhandledRejection", errorHandler);
}
// Verify required Node.js version // Verify required Node.js version
const REQUIRED_NODE_VERSION = "16.9.0"; const REQUIRED_NODE_VERSION = "16.9.0";