mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-09 01:00:49 +02:00
Update [Anti-Crash]
This commit is contained in:
@@ -44,28 +44,33 @@ module.exports = {
|
||||
|
||||
//AntiCrash
|
||||
process.on('unhandledRejection', (error) => {
|
||||
if (error.code == "10064") return
|
||||
console.log(' [antiCrash] :: Unhandled Rejection/Catch'.red);
|
||||
console.log(error);
|
||||
});
|
||||
|
||||
process.on("uncaughtException", (error, origin) => {
|
||||
if (error.code == "10064") return
|
||||
console.log(' [antiCrash] :: Uncaught Exception/Catch'.red);
|
||||
console.log(error);
|
||||
console.log('Information supplémentaire:', origin);
|
||||
});
|
||||
|
||||
process.on('uncaughtExceptionMonitor', (error, origin) => {
|
||||
if (error.code == "10064") return
|
||||
console.log(' [antiCrash] :: Uncaught Exception Monitor/Catch'.red);
|
||||
console.log(error);
|
||||
console.log('Information supplémentaire:', origin);
|
||||
});
|
||||
|
||||
process.on('beforeExit', (code) => {
|
||||
if (error.code == "10064") return
|
||||
console.log(' [antiCrash] :: Before Exit'.red);
|
||||
console.log('Code de sortie:', code);
|
||||
});
|
||||
|
||||
process.on('exit', (code) => {
|
||||
if (error.code == "10064") return
|
||||
console.log(' [antiCrash] :: Exit'.red);
|
||||
console.log('Code de sortie:', code);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user