From c1ae96818888693bddcf4913bd8dcb9baa55eb05 Mon Sep 17 00:00:00 2001 From: guangwu Date: Fri, 20 Oct 2023 08:29:04 +0800 Subject: [PATCH] fix: typo (#509) --- s3/replica_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3/replica_client.go b/s3/replica_client.go index ef8a5622..3d2ddffd 100644 --- a/s3/replica_client.go +++ b/s3/replica_client.go @@ -765,7 +765,7 @@ func deleteOutputError(out *s3.DeleteObjectsOutput) error { case 1: return fmt.Errorf("deleting object %s: %s - %s", *out.Errors[0].Key, *out.Errors[0].Code, *out.Errors[0].Message) default: - return fmt.Errorf("%d errors occured deleting objects, %s: %s - (%s (and %d others)", + return fmt.Errorf("%d errors occurred deleting objects, %s: %s - (%s (and %d others)", len(out.Errors), *out.Errors[0].Key, *out.Errors[0].Code, *out.Errors[0].Message, len(out.Errors)-1) } }