Increase ssh command timeout and improve error message
- My `github/github` codespace failed to start within 10s - Output more precise error message
This commit is contained in:
parent
e108b5d18f
commit
d506a97419
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,8 @@ func SSH(sshProfile string) error {
|
|||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
|
||||
if retries == 10 {
|
||||
return errors.New("Failed to start codespace")
|
||||
if retries == 30 {
|
||||
return errors.New("timed out while waiting for the codespace to start")
|
||||
}
|
||||
|
||||
codespace, err = apiClient.GetCodespace(ctx, token, codespace.OwnerLogin, codespace.Name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue