Browse Source

correctly print strings in error

pull/2/head
Chris Lu 12 years ago
parent
commit
f7c1a15ad1
  1. 2
      go/operation/upload_content.go

2
go/operation/upload_content.go

@ -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…
Cancel
Save