Commit a085cecd authored by Jacob Vosmaer's avatar Jacob Vosmaer

Fix errors

parent 9bd16e47
...@@ -111,7 +111,7 @@ func handlePostRPC(w http.ResponseWriter, r *gitRequest) { ...@@ -111,7 +111,7 @@ func handlePostRPC(w http.ResponseWriter, r *gitRequest) {
return return
} }
if err := cmd.Wait(); err != nil { if err := cmd.Wait(); err != nil {
log.Printf("handlePostRPC wait for %v: %v", err) log.Printf("handlePostRPC wait for %v: %v", cmd.Args, err)
return return
} }
} }
......
...@@ -126,7 +126,7 @@ func handleFileUploads(w http.ResponseWriter, r *gitRequest) { ...@@ -126,7 +126,7 @@ func handleFileUploads(w http.ResponseWriter, r *gitRequest) {
// Forward request to backend // Forward request to backend
upstreamResponse, err := r.u.httpClient.Do(upstreamRequest) upstreamResponse, err := r.u.httpClient.Do(upstreamRequest)
if err != nil { if err != nil {
fail500(w, fmt.Errorf("handleFileUploads: do request %v", upstreamRequest.URL.Path, err)) fail500(w, fmt.Errorf("handleFileUploads: do request %v: %v", upstreamRequest.URL.Path, err))
return return
} }
defer upstreamResponse.Body.Close() defer upstreamResponse.Body.Close()
......
...@@ -25,7 +25,7 @@ func handleSendFile(w http.ResponseWriter, r *gitRequest) { ...@@ -25,7 +25,7 @@ func handleSendFile(w http.ResponseWriter, r *gitRequest) {
upResponse, err := r.u.httpClient.Do(upRequest) upResponse, err := r.u.httpClient.Do(upRequest)
r.Body.Close() r.Body.Close()
if err != nil { if err != nil {
fail500(w, fmt.Errorf("handleSendfile:do upstream request: %v", err)) fail500(w, fmt.Errorf("handleSendfile: do upstream request: %v", err))
return return
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment