mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Crash on errors after all
This commit is contained in:
parent
ebd25b13c2
commit
e2261cd758
1 changed files with 1 additions and 5 deletions
|
@ -3,11 +3,7 @@ require("dotenv").config();
|
|||
process.on("unhandledRejection", (reason, p) => {
|
||||
// tslint:disable-next-line
|
||||
console.error(reason);
|
||||
});
|
||||
|
||||
process.on("uncaughtException", err => {
|
||||
// tslint:disable-next-line
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
// Always use UTC
|
||||
|
|
Loading…
Add table
Reference in a new issue