Skip to content

Commit 6b06145

Browse files
More debug
1 parent c5ca751 commit 6b06145

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@ export class CustomSpokenForms {
6363
this.updateSpokenFormMaps().catch(() => {});
6464
});
6565

66-
this.customSpokenFormsInitialized = this.updateSpokenFormMaps();
67-
this.customSpokenFormsInitialized.catch(() => {});
66+
this.customSpokenFormsInitialized = this.updateSpokenFormMaps().catch(
67+
() => {
68+
console.log("CustomSpokenForms.updateSpokenFormMaps() catch");
69+
},
70+
);
6871
}
6972

7073
/**
@@ -87,6 +90,7 @@ export class CustomSpokenForms {
8790
// Handle case where spokenForms.json doesn't exist yet
8891
this.needsInitialTalonUpdate_ = true;
8992
} else if (err instanceof DisabledCustomSpokenFormsError) {
93+
console.log("catch DisabledCustomSpokenFormsError");
9094
// Do nothing: this ide doesn't currently support custom spoken forms
9195
} else {
9296
console.error("Error loading custom spoken forms", err);
@@ -101,6 +105,8 @@ export class CustomSpokenForms {
101105
this.spokenFormMap_ = { ...defaultSpokenFormMap };
102106
this.notifier.notifyListeners();
103107

108+
console.log("rethrowing err");
109+
104110
throw err;
105111
}
106112

0 commit comments

Comments
 (0)