From 9302e68c92eeb2687c169c9a84d574df2e5e7053 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Wed, 13 Oct 2021 07:00:55 -0400 Subject: [PATCH] Include HTTP status code in error --- internal/codespaces/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/codespaces/api/api.go b/internal/codespaces/api/api.go index 1dff0fba9..1fcae02c5 100644 --- a/internal/codespaces/api/api.go +++ b/internal/codespaces/api/api.go @@ -341,7 +341,7 @@ func (a *API) StartCodespace(ctx context.Context, codespaceName string) error { if len(b) > 100 { b = append(b[:97], "..."...) } - return fmt.Errorf("failed to start codespace: %s", b) + return fmt.Errorf("failed to start codespace: %s (%s)", b, resp.Status) } return nil