mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-11-03 11:55:01 +00:00
Added uncaughtException event
This commit is contained in:
1 parent
984e8aab76
commit
ab950352fa
2 files changed
+11
No files matched your search
@@ -85,6 +85,10 @@ class RadioClient extends Client {
|
||||
process.on('SIGTERM', () => {
|
||||
require(`${events}SIGTERM`).execute(this);
|
||||
});
|
||||
|
||||
process.on('uncaughtException', (error) => {
|
||||
require(`${events}uncaughtException`).execute(this, error);
|
||||
});
|
||||
|
||||
this.on("error", error => {
|
||||
console.error(error);
|
||||
|
||||
Reference in new issue
Block a user