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