File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/cursorless-engine/src/spokenForms Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments