forked from Supositware/Haha-Yes
output reason
This commit is contained in:
parent
4529b6a10a
commit
890d294f9d
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ class unhandledRejectionListener extends Listener {
|
|||
});
|
||||
}
|
||||
|
||||
async exec(error) {
|
||||
async exec(error, reason) {
|
||||
console.error(reason);
|
||||
return console.error(`\x1b[31mUncaught Promise Rejection: ${error}\x1b[37m`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue