Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e35ea1b

Browse files
committed
Better language
1 parent 89bb9d4 commit e35ea1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/SlashCommands.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,13 @@ export class Command {
142142
run(roomId: string, threadId: string, args: string) {
143143
// if it has no runFn then its an ignored/nop command (autocomplete only) e.g `/me`
144144
if (!this.runFn) {
145-
return reject(
145+
reject(
146146
newTranslatableError(
147-
"Command error: This command should have been handled by another handler and we" +
148-
" can't try to run something without a command function.",
147+
"Command error: Unable to handle slash command.",
149148
),
150149
);
150+
151+
return;
151152
}
152153

153154
const renderingType = threadId

0 commit comments

Comments
 (0)