Skip to content

Commit

Permalink
Include err in fmt.Errorf directive
Browse files Browse the repository at this point in the history
related to #73
  • Loading branch information
stapelberg committed Feb 4, 2018
1 parent 37f630a commit 407eed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func getGolangBinaries() (map[string]string, error) {

resp, err := http.Get(golangBinariesURL)
if err != nil {
return nil, fmt.Errorf("getting %q: %v", golangBinariesURL)
return nil, fmt.Errorf("getting %q: %v", golangBinariesURL, err)
}
if got, want := resp.StatusCode, http.StatusOK; got != want {
return nil, fmt.Errorf("unexpected HTTP status code: got %d, want %d", got, want)
Expand Down

0 comments on commit 407eed0

Please sign in to comment.