Merge branch '15044-test-fixes'
[arvados.git] / services / keepproxy / keepproxy.go
index caeaa0e2c5ba9104028981a738dea020307783ea..c6fd99b9d8ed2f70b264b342ed041d5062eeb0a8 100644 (file)
@@ -541,7 +541,7 @@ func (h *proxyHandler) Put(resp http.ResponseWriter, req *http.Request) {
        if locatorIn == "" {
                bytes, err2 := ioutil.ReadAll(req.Body)
                if err2 != nil {
-                       _ = errors.New(fmt.Sprintf("Error reading request body: %s", err2))
+                       err = fmt.Errorf("Error reading request body: %s", err2)
                        status = http.StatusInternalServerError
                        return
                }