mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-12 21:58:57 +02:00
fix: surface partial S3 object deletion failures
This commit is contained in:
@@ -102,7 +102,13 @@ export default class S3Storage extends StorageBase {
|
||||
// nothing to remove
|
||||
return;
|
||||
}
|
||||
await this.client(200000).deleteObjects(params);
|
||||
const result = await this.client(200000).deleteObjects(params);
|
||||
if (result.Errors?.length) {
|
||||
throw new AnonymousError("storage_delete_failed", {
|
||||
httpStatus: 502,
|
||||
object: result.Errors,
|
||||
});
|
||||
}
|
||||
|
||||
if (data.IsTruncated) {
|
||||
await this.rm(repoId, dir);
|
||||
|
||||
Reference in New Issue
Block a user