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.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index a359bf32b..6470cbbca 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -290,6 +290,9 @@ func (worker *FileCopyWorker) uploadFileAsOne(ctx context.Context, task FileCopy
if assignError != nil {
return fmt.Errorf("assign volume failure %v: %v", request, assignError)
}
+ if assignResult.Error != "" {
+ return fmt.Errorf("assign volume failure %v: %v", request, assignResult.Error)
+ }
return nil
})
if err != nil {
@@ -387,6 +390,9 @@ func (worker *FileCopyWorker) uploadFileInChunks(ctx context.Context, task FileC
if assignError != nil {
return fmt.Errorf("assign volume failure %v: %v", request, assignError)
}
+ if assignResult.Error != "" {
+ return fmt.Errorf("assign volume failure %v: %v", request, assignResult.Error)
+ }
return nil
})
if err != nil {