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