correctly print strings in error

This commit is contained in:
Chris Lu 2013-08-13 18:21:54 -07:00
parent e45c6b5e21
commit f7c1a15ad1

View file

@ -62,7 +62,7 @@ func Upload(uploadUrl string, filename string, reader io.Reader, isGzipped bool,
var ret UploadResult var ret UploadResult
err = json.Unmarshal(resp_body, &ret) err = json.Unmarshal(resp_body, &ret)
if err != nil { 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 return nil, err
} }
if ret.Error != "" { if ret.Error != "" {