aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-27 22:39:07 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-27 22:39:07 -0400
commit94c20f17f1a87e594fc07a75eb6026891086c67c (patch)
treef32942ce07630352afbf4d7be2b718fc9724502c /src/commands/dev
parentf718df9321f2ff28a5a1f20d53e474fbf5998d6e (diff)
downloadtanzanite-94c20f17f1a87e594fc07a75eb6026891086c67c.tar.gz
tanzanite-94c20f17f1a87e594fc07a75eb6026891086c67c.tar.bz2
tanzanite-94c20f17f1a87e594fc07a75eb6026891086c67c.zip
fix: use util#formatError
Diffstat (limited to 'src/commands/dev')
-rw-r--r--src/commands/dev/reload.ts2
-rw-r--r--src/commands/dev/sh.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/dev/reload.ts b/src/commands/dev/reload.ts
index d874c83..17802b0 100644
--- a/src/commands/dev/reload.ts
+++ b/src/commands/dev/reload.ts
@@ -47,7 +47,7 @@ export default class ReloadCommand extends BushCommand {
} catch (e) {
if (output!) void client.logger.error('reloadCommand', output);
return message.util.send(
- `An error occurred while reloading:\n${await util.codeblock(e?.stack || e, 2048 - 34, 'js', true)}`
+ `An error occurred while reloading:\n${await util.codeblock(util.formatError(e), 2048 - 34, 'js', true)}`
);
}
}
diff --git a/src/commands/dev/sh.ts b/src/commands/dev/sh.ts
index be6a015..e071e73 100644
--- a/src/commands/dev/sh.ts
+++ b/src/commands/dev/sh.ts
@@ -82,7 +82,7 @@ export default class ShCommand extends BushCommand {
.setColor(util.colors.error)
.spliceFields(1, 1);
- embed.addFields([{ name: '📤 Output', value: await util.codeblock(e?.stack, 1024, 'js', true) }]);
+ embed.addFields([{ name: '📤 Output', value: await util.codeblock(util.formatError(e), 1024, 'js', true) }]);
}
await message.util.edit({ embeds: [embed] });
}