15652: Eliminate a malloc when writing a one-segment block.
[arvados.git] / sdk / go / keepclient / support.go
index 542827f5e0d83c5d074942ef4546955e59b46ba5..e589593fa8c7e9a8a6e9af7297896f48339ca780 100644 (file)
@@ -87,7 +87,7 @@ func (this *KeepClient) uploadToKeepServer(host string, hash string, body io.Rea
        var resp *http.Response
        if resp, err = this.httpClient().Do(req); err != nil {
                DebugPrintf("DEBUG: [%s] Upload failed %v error: %v", reqid, url, err.Error())
-               upload_status <- uploadStatus{err, url, 0, 0, ""}
+               upload_status <- uploadStatus{err, url, 0, 0, err.Error()}
                return
        }