You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.error(`${parseInt(Number(new Date()) / 1000)} # Serious problem (${origin}) - this should not happen but the JBNC is still running. ${err.stack}`);
60
-
});
61
-
*/
58
+
if(global.UNCAUGHTEXCEPTION){
59
+
// Prevent BNC from crashing for all other users when an error is caused by a user (with log error and time)
60
+
process.on('uncaughtException',(err,origin)=>{
61
+
console.error(`${parseInt(Number(newDate())/1000)} # Serious problem (${origin}) - this should not happen but the JBNC is still running. ${err.stack}`);
0 commit comments