mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Catch that
This commit is contained in:
+1
-1
@@ -106,6 +106,6 @@ client.setInterval(() => {
|
||||
client.login(TOKEN);
|
||||
|
||||
process.on('unhandledRejection', err => {
|
||||
console.error('[FATAL] Unhandled Promise Rejection:', err);
|
||||
console.error('[FATAL] Unhandled Promise Rejection.', err);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user