fix(all): Create bot working again.

This commit is contained in:
Rodrigo Rodriguez 2023-07-19 06:41:32 -03:00
parent a7745985ec
commit 4eecd5acec

View file

@ -114,7 +114,11 @@ export class GBServer {
});
process.on('uncaughtException', (err, p) => {
GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''}`);
if (err !== null) {
GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''}`);
} else {
GBLog.error('UNCAUGHT_EXCEPTION: Unknown error (err is null)');
}
});
process.on('SIGTERM', () => {