Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3bbf2be

Browse files
committed
fix git not installed error
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent99b8604 commit3bbf2be

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎src/channel/index.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,22 @@ class Channel implements Channel {
146146
// Should wait for workspace before running otherwise requires access to root folder
147147
constisGitInstalled=awaitgitVersion()
148148
if(!isGitInstalled){
149-
this.send({type:'GIT_NOT_INSTALLED'})
149+
consterror: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}})
150160
return
151161
}
152162
this.send({type:'SETUP_VALIDATED'})
153163
return
154164
case'EDITOR_REQUEST_WORKSPACE':
155-
console.log('request workspace')
156165
openWorkspace()
157166
return
158167
// load step actions (git commits, commands, open files)
@@ -183,6 +192,7 @@ class Channel implements Channel {
183192
// onError(new Error(`Error Markdown file not found for ${action.type}`))
184193
})
185194

195+
// log error to console for safe keeping
186196
console.log(`ERROR:\n${errorMarkdown}`)
187197

188198
if(errorMarkdown){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp