Elffuss BraidHub

kikocis/continue public

better error message for slash command run thingy
Changeset82a3f9f64f460c2196866882f485ba70b4aa5b8e5b2a57b6713238e8a7066065
AuthorDallin Romney <dallinromney@gmail.com> · 2025-06-27 21:38 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-06-27 21:38 -07:00
Parents2d70e3ea78cf

Browse the files at this changeset

1 file changed

modified core/llm/streamChat.ts +4 −1
@@ -60,7 +60,10 @@
6060 true,
6161 );
6262 if (!slashCommand.run) {
63- throw new Error(`Slash command ${command.name} is not a legacy command`);
63+ console.error(
64+ `Slash command ${command.name} (${command.source}) has no run function`,
65+ );
66+ throw new Error(`Slash command not found`);
6467 }
6568
6669 const gen = slashCommand.run({