mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-06 03:57:48 +01:00
better error reporting and handling
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user