output reason

This commit is contained in:
loicbersier 2020-06-17 15:29:09 +02:00
parent 4529b6a10a
commit 890d294f9d

View file

@ -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`);
}
}