mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 00:09:08 +02:00
Make the Promise Rejection catcher error less nuts
This commit is contained in:
@@ -191,7 +191,7 @@ client.once('ready', () => {
|
||||
});
|
||||
|
||||
process.on('unhandledRejection', function(reason, p){
|
||||
console.log("Possibly Unhandled Rejection at: Promise ", p, " reason: ", reason);
|
||||
console.log("A Possibly Unhandled Rejection has Occurred.");
|
||||
});
|
||||
|
||||
client.login(config.token);
|
||||
Reference in New Issue
Block a user