why are unhandled rejections trying to log a stack
This commit is contained in:
parent
c188356030
commit
0662be72d1
1 changed files with 1 additions and 1 deletions
|
@ -386,6 +386,6 @@ module.exports = client => {
|
|||
});
|
||||
|
||||
process.on("unhandledRejection", err => {
|
||||
client.logger.error(`Unhandled rejection: ${err.stack}`);
|
||||
client.logger.error(`Unhandled rejection: ${err}`);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue