Merge pull request #2 from github/mislav/timeout

Increase ssh command timeout and improve error message
This commit is contained in:
Jose Garcia 2021-07-15 12:00:45 -04:00 committed by GitHub
commit 349d3f382e

View file

@ -110,8 +110,8 @@ func SSH(sshProfile string) error {
time.Sleep(1 * time.Second)
}
if retries == 20 {
return errors.New("Timed out waiting for Codespace to start. Try again.")
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)