Browse Source

adjust error message

pull/2/head
Chris Lu 11 years ago
parent
commit
ff0560ee03
  1. 4
      go/util/http_util.go

4
go/util/http_util.go

@ -23,7 +23,7 @@ func init() {
func Post(url string, values url.Values) ([]byte, error) {
r, err := client.PostForm(url, values)
if err != nil {
glog.V(0).Infoln("post to", url, err)
glog.V(0).Infoln(err)
return nil, err
}
defer r.Body.Close()
@ -38,7 +38,7 @@ func Post(url string, values url.Values) ([]byte, error) {
func Get(url string) ([]byte, error) {
r, err := client.Get(url)
if err != nil {
glog.V(0).Infoln("getting ", url, err)
glog.V(0).Infoln(err)
return nil, err
}
defer r.Body.Close()

Loading…
Cancel
Save