Skip to content

Commit 69f56bb

Browse files
committed
Throw error
1 parent 78a9f32 commit 69f56bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cursorless-engine/src/spokenForms/CustomSpokenForms.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ export class CustomSpokenForms {
7979
let allCustomEntries: SpokenFormEntry[];
8080
try {
8181
allCustomEntries = await this.talonSpokenForms.getSpokenFormEntries();
82+
if (allCustomEntries.length === 0) {
83+
throw new Error("Custom spoken forms list empty");
84+
}
8285
} catch (err) {
8386
if (err instanceof NeedsInitialTalonUpdateError) {
8487
// Handle case where spokenForms.json doesn't exist yet

0 commit comments

Comments
 (0)