Merge pull request #4504 from cli/show-http-status

cs create: include HTTP status code in error from /user/codespaces/*/start
This commit is contained in:
Alan Donovan 2021-10-13 09:00:37 -04:00 committed by GitHub
commit 675ee316e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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