Changesets · Branches · Tags · Compare
| Changeset | 82a3f9f64f460c2196866882f485ba70b4aa5b8e5b2a57b6713238e8a7066065 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-06-27 21:38 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-06-27 21:38 -07:00 |
| Parents | 2d70e3ea78cf |
1 file changed
modified core/llm/streamChat.ts +4 −1
| @@ -60,7 +60,10 @@ | ||
| 60 | 60 | true, |
| 61 | 61 | ); |
| 62 | 62 | 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`); | |
| 64 | 67 | } |
| 65 | 68 | |
| 66 | 69 | const gen = slashCommand.run({ |