fix(all): Create bot working again.
This commit is contained in:
parent
a7745985ec
commit
4eecd5acec
1 changed files with 6 additions and 2 deletions
|
@ -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', () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue