diff --git a/src/app.ts b/src/app.ts index f75b2f1b..5748175b 100644 --- a/src/app.ts +++ b/src/app.ts @@ -118,11 +118,11 @@ export class GBServer { }); process.on('uncaughtException', (err, p) => { - GBLog.error(`UNCAUGHT_EXCEPTION: ${JSON.stringify(err)}`); + GBLog.error(`UNCAUGHT_EXCEPTION: ${JSON.stringify(err, Object.getOwnPropertyNames(err))}`); }); process.on('unhandledRejection', (err, p) => { - GBLog.error(`UNHANDLED_REJECTION: ${JSON.stringify(err)}`); + GBLog.error(`UNHANDLED_REJECTION: ${JSON.stringify(err, Object.getOwnPropertyNames(err))}`); }); // Creates working directory.