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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue