mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-16 02:55:03 +00:00
fix: wonky error handling
This commit is contained in:
parent
b490312ed7
commit
7c2666951e
1 changed files with 4 additions and 0 deletions
|
@ -277,6 +277,10 @@ connect().then(async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on("error", (err) => {
|
client.on("error", (err) => {
|
||||||
|
if (err instanceof PluginLoadError) {
|
||||||
|
errorHandler(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
errorHandler(new DiscordJSError(err.message, (err as any).code, 0));
|
errorHandler(new DiscordJSError(err.message, (err as any).code, 0));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue