1
0
Fork 0

output reason

akairo
loicbersier 4 years ago
parent 4529b6a10a
commit 890d294f9d

@ -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`); return console.error(`\x1b[31mUncaught Promise Rejection: ${error}\x1b[37m`);
} }
} }

Loading…
Cancel
Save