This commit is contained in:
Emily 2020-10-03 10:53:42 +10:00
commit 83990e47f1

View file

@ -197,7 +197,6 @@ module.exports = client => {
process.on("uncaughtException", err => { process.on("uncaughtException", err => {
const errorMsg = err.stack.replace(new RegExp(`${__dirname}/`, "g"), "./"); const errorMsg = err.stack.replace(new RegExp(`${__dirname}/`, "g"), "./");
client.logger.error(`Uncaught Exception: ${errorMsg}`); client.logger.error(`Uncaught Exception: ${errorMsg}`);
process.exit(1);
}); });
process.on("unhandledRejection", err => { process.on("unhandledRejection", err => {