From c31fc05746b02ace70283197b33fd3f7b6d0866a Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 2 Sep 2021 09:09:05 -0400 Subject: [PATCH] more typo fixes --- api/api.go | 2 +- cmd/ghcs/create.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.go b/api/api.go index 1cd69073e..08ca2c370 100644 --- a/api/api.go +++ b/api/api.go @@ -330,7 +330,7 @@ type SKU struct { func (a *API) GetCodespacesSKUs(ctx context.Context, user *User, repository *Repository, branch, location string) ([]*SKU, error) { req, err := http.NewRequest(http.MethodGet, githubAPI+"/vscs_internal/user/"+user.Login+"/skus", nil) if err != nil { - return nil, fmt.Errorf("err creating request: %v", err) + return nil, fmt.Errorf("error creating request: %v", err) } q := req.URL.Query() diff --git a/cmd/ghcs/create.go b/cmd/ghcs/create.go index 55b74d6e7..bd1d89e4e 100644 --- a/cmd/ghcs/create.go +++ b/cmd/ghcs/create.go @@ -228,7 +228,7 @@ func getBranchName(branch string) (string, error) { func getMachineName(ctx context.Context, machine string, user *api.User, repo *api.Repository, branch, location string, apiClient *api.API) (string, error) { skus, err := apiClient.GetCodespacesSKUs(ctx, user, repo, branch, location) if err != nil { - return "", fmt.Errorf("error getting codespace SKUs: %v", err) + return "", fmt.Errorf("error requesting machine instance types: %v", err) } // if user supplied a machine type, it must be valid