This commit is contained in:
Erik 2021-06-11 22:15:15 +03:00
parent 0e7b025c55
commit 811dfe7d43
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -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}`);
}
}