From d506a97419e4f1e2e3f35746bb0426d42fd598de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 15 Jul 2021 16:10:03 +0200 Subject: [PATCH] Increase ssh command timeout and improve error message - My `github/github` codespace failed to start within 10s - Output more precise error message --- cmd/ghcs/ssh.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ghcs/ssh.go b/cmd/ghcs/ssh.go index 366076516..90a7f7bfc 100644 --- a/cmd/ghcs/ssh.go +++ b/cmd/ghcs/ssh.go @@ -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)