fix(i18n): broken translations

This commit is contained in:
Isaac
2023-03-10 00:25:07 +00:00
parent ea9d3e4e33
commit b8c2a7cc13
6 changed files with 25 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
const { StdinCommand } = require('@eartharoid/dbf');
const { inspect } = require('util');
module.exports = class Commands extends StdinCommand {
constructor(client, options) {
@@ -13,7 +14,11 @@ module.exports = class Commands extends StdinCommand {
case 'publish': {
this.client.commands.publish()
.then(commands => this.client.log.success('Published %d commands', commands?.size))
.catch(this.client.log.error);
.catch(error => {
this.client.log.warn('Failed to publish commands');
this.client.log.error(error);
this.client.log.error(inspect(error.rawError?.errors, { depth: Infinity }));
});
break;
}
default: {