mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
qingstor: fix error propagation in CleanUp
Before this change errors cleaning multiple buckets were passing silently
This commit is contained in:
parent
38e70f1797
commit
d7cd35e2ca
@ -927,7 +927,7 @@ func (f *Fs) CleanUp(ctx context.Context) (err error) {
|
||||
}
|
||||
for _, entry := range entries {
|
||||
cleanErr := f.cleanUpBucket(ctx, f.opt.Enc.FromStandardName(entry.Remote()))
|
||||
if err != nil {
|
||||
if cleanErr != nil {
|
||||
fs.Errorf(f, "Failed to cleanup bucket: %q", cleanErr)
|
||||
err = cleanErr
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user