forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
0e7b025c55
commit
811dfe7d43
@ -76,7 +76,7 @@ class DiscordClient extends Client {
|
||||
this.logger.info(`Took ${Date.now()-beforeTime}ms to build the client.`);
|
||||
|
||||
process.on("unhandledRejection", (error) => {
|
||||
this.client.logger.error(`Unhandled Promise Rejection:\n${error.stack || error}`);
|
||||
this.logger.error(`Unhandled Promise Rejection:\n${error.stack || error}`);
|
||||
});
|
||||
|
||||
this._built = true;
|
||||
@ -106,7 +106,7 @@ class DiscordClient extends Client {
|
||||
// eslint-disable-next-line no-eval
|
||||
template = eval(template);
|
||||
} catch(error) {
|
||||
this.client.logger.error(`Error in locale ${language}:${index} while executing code.\n${error.stack || error}`);
|
||||
this.logger.error(`Error in locale ${language}:${index} while executing code.\n${error.stack || error}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user