Skip to content

Commit

Permalink
fix(scripts/coderversion): fix error-wrapping directive (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstcn authored Jul 2, 2024
1 parent 35e6ac8 commit 7c88401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/coderversion/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ const releasesURL = "https://api.github.com/repos/coder/coder/releases"
func fetchReleases() []string {
resp, err := http.Get(releasesURL)
if err != nil {
fatal("get releases: %w", err)
fatal("get releases: %s", err.Error())
}
defer resp.Body.Close()

var releases []release
if err := json.NewDecoder(resp.Body).Decode(&releases); err != nil {
fatal("parse releases: %w", err)
fatal("parse releases: %s", err.Error())
}

var ss []string
Expand Down

0 comments on commit 7c88401

Please sign in to comment.