mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-07 08:05:01 +00:00
chore: use prod error handlers in dev
This commit is contained in:
parent
21374fa804
commit
6c55b98eee
1 changed files with 2 additions and 4 deletions
|
@ -172,10 +172,8 @@ function errorHandler(err) {
|
|||
// tslint:enable:no-console
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
process.on("uncaughtException", errorHandler);
|
||||
process.on("unhandledRejection", errorHandler);
|
||||
}
|
||||
process.on("uncaughtException", errorHandler);
|
||||
process.on("unhandledRejection", errorHandler);
|
||||
|
||||
// Verify required Node.js version
|
||||
const REQUIRED_NODE_VERSION = "16.9.0";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue