|
@ -84,13 +84,13 @@ func DeleteFiles(master string, fileIds []string) (*DeleteFilesResult, error) { |
|
|
} |
|
|
} |
|
|
jsonBlob, err := util.Post("http://"+server+"/delete", values) |
|
|
jsonBlob, err := util.Post("http://"+server+"/delete", values) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
ret.Errors = append(ret.Errors, err.Error()+"\n"+string(jsonBlob)) |
|
|
|
|
|
|
|
|
ret.Errors = append(ret.Errors, err.Error()+" "+string(jsonBlob)) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
var result []DeleteResult |
|
|
var result []DeleteResult |
|
|
err = json.Unmarshal(jsonBlob, &result) |
|
|
err = json.Unmarshal(jsonBlob, &result) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
ret.Errors = append(ret.Errors, err.Error()+"\n"+string(jsonBlob)) |
|
|
|
|
|
|
|
|
ret.Errors = append(ret.Errors, err.Error()+" "+string(jsonBlob)) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
ret.Results = append(ret.Results, result...) |
|
|
ret.Results = append(ret.Results, result...) |
|
|