diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-04-21 14:28:46 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-04-21 14:28:46 -0700 |
| commit | 57df14f76febf5f94131be0b4bde833d45d8f37c (patch) | |
| tree | 90615fd547ac88f1f794e19721ea5a35d3f68f8d | |
| parent | cf54d703114256f439edf3b16a69d9ff8bd85aec (diff) | |
| download | seaweedfs-57df14f76febf5f94131be0b4bde833d45d8f37c.tar.xz seaweedfs-57df14f76febf5f94131be0b4bde833d45d8f37c.zip | |
report error if copying failed
| -rw-r--r-- | weed/command/filer_copy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index f596ab23d..0e9e10ee3 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -309,7 +309,7 @@ func (worker *FileCopyWorker) uploadFileAsOne(task FileCopyTask, f *os.File) err return 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 |
