Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2230 from testwill/typo
Browse files Browse the repository at this point in the history
fix: typo
  • Loading branch information
ibuildthecloud authored Nov 2, 2023
2 parents c1aa702 + 63ee2f5 commit 5b51a7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ yarn start

- All names should be entirely lowercase. macOS filesystems are case-insensitive by default, Linux isn't. Bad things happen.
- Names can be prefixed with `[a number]-` to force sort order. The number isn't included in the output files/URLs.
- Prefer short, to the point names. A single word when possible, hyphen-separated if you have to have mulitple. These will become the URL for the file.
- Prefer short, to the point names. A single word when possible, hyphen-separated if you have to have multiple. These will become the URL for the file.
- Once published a file should never be renamed. If you have to anyway, a redirect must be setup so that the old name continues to go somewhere.
- For files, a longer more descriptive title can go in the frontmatter (as `title:`). These can be internationalized later.
- For directories, create a `_category_.yaml` with a `label:` in it to provide a longer display label/title.
4 changes: 2 additions & 2 deletions pkg/buildclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ func Stream(ctx context.Context, cwd string, streams *streams.Output, dialer Web
return nil, err
}

// If there was a body and an error ocurred, read the body and write it
// If there was a body and an error occurred, read the body and write it
// into the error message.
body, readErr := io.ReadAll(response.Body)
if readErr != nil {
return nil, fmt.Errorf("%w: status %v, error occured while reading builder response body: %v", err, response.StatusCode, readErr)
return nil, fmt.Errorf("%w: status %v, error occurred while reading builder response body: %v", err, response.StatusCode, readErr)
}
return nil, fmt.Errorf("%w: %v, %v", err, response.StatusCode, string(body))
}
Expand Down

0 comments on commit 5b51a7f

Please sign in to comment.