From 0662be72d110e95e4af94c530fd0cef7bbd310f8 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 18 Apr 2020 04:11:13 +0000 Subject: [PATCH] why are unhandled rejections trying to log a stack --- src/modules/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/functions.js b/src/modules/functions.js index f8c552c..46ad1e4 100644 --- a/src/modules/functions.js +++ b/src/modules/functions.js @@ -386,6 +386,6 @@ module.exports = client => { }); process.on("unhandledRejection", err => { - client.logger.error(`Unhandled rejection: ${err.stack}`); + client.logger.error(`Unhandled rejection: ${err}`); }); };