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) } }