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) => {
// tslint:disable-next-line
console.error(reason);
process.exit();
});
process.on("uncaughtException", err => {
// tslint:disable-next-line
console.error(err);
});
// Always use UTC