mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
correctly print strings in error
This commit is contained in:
parent
e45c6b5e21
commit
f7c1a15ad1
|
@ -62,7 +62,7 @@ func Upload(uploadUrl string, filename string, reader io.Reader, isGzipped bool,
|
|||
var ret UploadResult
|
||||
err = json.Unmarshal(resp_body, &ret)
|
||||
if err != nil {
|
||||
glog.V(0).Infoln("failing to read upload resonse", uploadUrl, resp_body)
|
||||
glog.V(0).Infoln("failing to read upload resonse", uploadUrl, string(resp_body))
|
||||
return nil, err
|
||||
}
|
||||
if ret.Error != "" {
|
||||
|
|
Loading…
Reference in a new issue