better error reporting and handling

This commit is contained in:
Chris Lu committed 2012-09-26 13:38:45 -07:00
1 parent 3d53f73006
commit a847e2beee
4 files changed
+54 -29

No files matched your search

@@ -2,11 +2,13 @@ package operation
import (
"net/http"
"log"
)
func Delete(url string) error {
req, err := http.NewRequest("DELETE", url, nil)
if err != nil {
log.Println("failing to delete", url)
return err
}
_, err = http.DefaultClient.Do(req)