Do not exit on uncaughtException

I think I forgot this here while testing something
This commit is contained in:
FLGX 2020-08-29 20:58:35 +02:00 committed by GitHub
parent 18db7e597d
commit 6d1d4a0441
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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