3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00

Crash on errors after all

This commit is contained in:
Dragory 2018-08-02 03:46:29 +03:00
parent 546281d495
commit 1ef86eb97d

View file

@ -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