mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 22:27:20 +02:00
fix: surface partial S3 object deletion failures
This commit is contained in:
3 files changed
+23
-1
No files matched your search
@@ -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