Skip to content

Commit 3a4a18c

Browse files
whatever
1 parent 71f4b87 commit 3a4a18c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,17 @@ export class CustomSpokenForms {
6767
});
6868
});
6969

70-
this.customSpokenFormsInitialized = this.updateSpokenFormMaps().catch(
71-
() => {
72-
console.log("CustomSpokenForms.updateSpokenFormMaps() catch");
73-
},
74-
);
70+
try {
71+
this.customSpokenFormsInitialized = this.updateSpokenFormMaps().catch(
72+
() => {
73+
console.log("CustomSpokenForms.updateSpokenFormMaps() catch");
74+
},
75+
);
76+
} catch (error) {
77+
console.log("CustomSpokenForms constructor catch");
78+
console.log(error);
79+
throw error;
80+
}
7581

7682
console.log("CustomSpokenForms constructor done");
7783
}

0 commit comments

Comments
 (0)