()
| 70 | } |
| 71 | |
| 72 | async *loadRest() { |
| 73 | if (this.itemsToFetch.length > 0) { |
| 74 | yield* this.iterateItemsWithErrorHandling(this.itemsToFetch); |
| 75 | this.itemsToFetch = []; |
| 76 | } |
| 77 | |
| 78 | if (this.errors.length > 0) { |
| 79 | throw new ProtonDriveError(c('Error').t`Some items could not be loaded`, { cause: this.errors }); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | private async *iterateItemsWithErrorHandling(items: ID[]) { |
| 84 | try { |
no test coverage detected