File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -146,13 +146,22 @@ class Channel implements Channel {
146
146
// Should wait for workspace before running otherwise requires access to root folder
147
147
const isGitInstalled = await gitVersion ( )
148
148
if ( ! isGitInstalled ) {
149
- this . send ( { type : 'GIT_NOT_INSTALLED' } )
149
+ const error : E . ErrorMessage = {
150
+ type : 'GitNotFound' ,
151
+ message : '' ,
152
+ actions : [
153
+ {
154
+ label : 'Check Again' ,
155
+ transition : 'RETRY' ,
156
+ } ,
157
+ ] ,
158
+ }
159
+ this . send ( { type : 'VALIDATE_SETUP_FAILED' , payload : { error } } )
150
160
return
151
161
}
152
162
this . send ( { type : 'SETUP_VALIDATED' } )
153
163
return
154
164
case 'EDITOR_REQUEST_WORKSPACE' :
155
- console . log ( 'request workspace' )
156
165
openWorkspace ( )
157
166
return
158
167
// load step actions (git commits, commands, open files)
@@ -183,6 +192,7 @@ class Channel implements Channel {
183
192
// onError(new Error(`Error Markdown file not found for ${action.type}`))
184
193
} )
185
194
195
+ // log error to console for safe keeping
186
196
console . log ( `ERROR:\n ${ errorMarkdown } ` )
187
197
188
198
if ( errorMarkdown ) {
You can’t perform that action at this time.
0 commit comments