mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 20:04:52 +01:00
s3: report errors on bucket creation (mkdir) correctly
Before this fix errors on bucket creation were being silently swallowed. See: https://forum.rclone.org/t/rclone-with-brand-new-aws-account-for-s3/15590
This commit is contained in:
parent
9eb17e4ade
commit
e2bf91452a
@ -1738,7 +1738,7 @@ func (f *Fs) makeBucket(ctx context.Context, bucket string) error {
|
|||||||
err = nil
|
err = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return err
|
||||||
}, func() (bool, error) {
|
}, func() (bool, error) {
|
||||||
return f.bucketExists(ctx, bucket)
|
return f.bucketExists(ctx, bucket)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user