3
0
Fork 0
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:
Dragory 2018-08-02 01:19:20 +03:00
parent 1ef88b61f7
commit c4523ddc32

View file

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