aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_copy.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/filer_copy.go')
-rw-r--r--weed/command/filer_copy.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 88ae55e84..185a1d0ff 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -482,7 +482,8 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File,
})
})
if err != nil {
- fmt.Printf("Failed to assign from %v: %v\n", worker.options.masters, err)
+ uploadError = fmt.Errorf("Failed to assign from %v: %v\n", worker.options.masters, err)
+ return
}
targetUrl := "http://" + assignResult.Location.Url + "/" + assignResult.FileId