aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2016-05-05 10:37:33 -0700
committerChris Lu <chris.lu@gmail.com>2016-05-05 10:37:33 -0700
commite8193ec201c9db3a7ff12418268b42be35cbc8fb (patch)
tree4ae35f22ab746a2d047dd3b9e5a6ca92cfbffbc8 /go
parent596f58507e6bf627faf9a134ddf3bfa0160ae9a8 (diff)
downloadseaweedfs-e8193ec201c9db3a7ff12418268b42be35cbc8fb.tar.xz
seaweedfs-e8193ec201c9db3a7ff12418268b42be35cbc8fb.zip
return nil if no error
fix https://github.com/chrislusf/seaweedfs/issues/299
Diffstat (limited to 'go')
-rw-r--r--go/topology/store_replicate.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/go/topology/store_replicate.go b/go/topology/store_replicate.go
index 95799e497..f67ea7732 100644
--- a/go/topology/store_replicate.go
+++ b/go/topology/store_replicate.go
@@ -107,6 +107,9 @@ func (dr DistributedOperationResult) Error() error {
errs = append(errs, fmt.Sprintf("[%s]: %v", k, v))
}
}
+ if len(errs) == 0 {
+ return nil
+ }
return errors.New(strings.Join(errs, "\n"))
}