Removed logging and fixed formatting

This commit is contained in:
Richard Lewis 2017-02-20 16:18:18 +00:00
parent 3c91bb314d
commit 07fa859cf3
1 changed files with 1 additions and 3 deletions

View File

@ -9,7 +9,6 @@ import (
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/url"
"path"
@ -564,9 +563,8 @@ func (cli *Client) UploadToContentRepo(content io.Reader, contentType string, co
Code: res.StatusCode,
}
}
log.Printf("Upload request failed: %s", string(contents))
return nil, HTTPError{
Message: "Upload request failed" + string(contents),
Message: "Upload request failed: " + string(contents),
Code: res.StatusCode,
}
}