mirror of
https://github.com/rclone/rclone
synced 2024-11-05 01:42:31 +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
|
||||
}
|
||||
}
|
||||
return nil
|
||||
return err
|
||||
}, func() (bool, error) {
|
||||
return f.bucketExists(ctx, bucket)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user