Skip to content

Commit 407eed0

Browse files
committed
Include err in fmt.Errorf directive
related to #73
1 parent 37f630a commit 407eed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func getGolangBinaries() (map[string]string, error) {
2020

2121
resp, err := http.Get(golangBinariesURL)
2222
if err != nil {
23-
return nil, fmt.Errorf("getting %q: %v", golangBinariesURL)
23+
return nil, fmt.Errorf("getting %q: %v", golangBinariesURL, err)
2424
}
2525
if got, want := resp.StatusCode, http.StatusOK; got != want {
2626
return nil, fmt.Errorf("unexpected HTTP status code: got %d, want %d", got, want)

0 commit comments

Comments
 (0)