From e2bf91452a263ff8babb3e5e153a2d2c7b4b3719 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 15 Apr 2020 13:13:13 +0100 Subject: [PATCH] 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 --- backend/s3/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 40e5cb43d..9bd4dbcb7 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -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) })