why are unhandled rejections trying to log a stack

This commit is contained in:
Emily 2020-04-18 04:11:13 +00:00 committed by GitHub
parent c188356030
commit 0662be72d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -386,6 +386,6 @@ module.exports = client => {
});
process.on("unhandledRejection", err => {
client.logger.error(`Unhandled rejection: ${err.stack}`);
client.logger.error(`Unhandled rejection: ${err}`);
});
};