Browse Source

report error if copying failed

pull/1293/head
Chris Lu 5 years ago
parent
commit
57df14f76f
  1. 2
      weed/command/filer_copy.go

2
weed/command/filer_copy.go

@ -309,7 +309,7 @@ func (worker *FileCopyWorker) uploadFileAsOne(task FileCopyTask, f *os.File) err
return nil return nil
}) })
if err != nil { if err != nil {
fmt.Printf("Failed to assign from %v: %v\n", worker.options.masters, err)
return fmt.Errorf("Failed to assign from %v: %v\n", worker.options.masters, err)
} }
targetUrl := "http://" + assignResult.Url + "/" + assignResult.FileId targetUrl := "http://" + assignResult.Url + "/" + assignResult.FileId

Loading…
Cancel
Save